Search Results for

    Show / Hide Table of Contents

    Class TextAreaView

    • C#
    • Visual Basic
    public sealed class TextAreaView : AbstractView
    Public NotInheritable Class TextAreaView
        Inherits AbstractView
    Inheritance
    System.Object
    AbstractView
    TextAreaView
    Inherited Members
    AbstractView.Id
    AbstractView.Name
    AbstractView.Type
    AbstractView.HtmlIndent
    AbstractView.NonAllowedCharactersForId
    AbstractView.GetIndentStringFromNumber(Int32)
    AbstractView.IdContainsNonAllowedCharacters()
    AbstractView.ShallowCopy()
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: HomeSeer.Jui.Views
    Assembly: PluginSdk.dll


    A text area view is an editable text box for the user to enter a large volume of text


    Constructors

    View Source

    TextAreaView(String, String, Int32)

    Create a new instance of an TextAreaView with an ID, a Name, and the number of rows.

    Declaration
    • C#
    • Visual Basic
    [JsonConstructor]
    public TextAreaView(string id, string name, int rows = 5)
    <JsonConstructor>
    Public Sub New(id As String, name As String, rows As Integer = 5)
    Parameters
    Type Name Description
    System.String id

    The unique ID for the View

    System.String name

    The name of the View

    System.Int32 rows

    The number of text rows in the text area. DEFAULT: 5

    Exceptions
    Type Condition
    System.ArgumentOutOfRangeException

    Thrown when the number of rows is set to an invalid value

    View Source

    TextAreaView(String, String, String, Int32)

    Create a new instance of an TextAreaView with an ID, a Name, a Value, and the number of rows.

    Declaration
    • C#
    • Visual Basic
    public TextAreaView(string id, string name, string value, int rows = 5)
    Public Sub New(id As String, name As String, value As String, rows As Integer = 5)
    Parameters
    Type Name Description
    System.String id

    The unique ID for the View

    System.String name

    The name of the View

    System.String value

    The value inputted into the field

    System.Int32 rows

    The number of text rows in the text area. DEFAULT: 5

    Exceptions
    Type Condition
    System.ArgumentOutOfRangeException

    Thrown when the number of rows is set to an invalid value

    Fields

    View Source

    _rows

    Declaration
    • C#
    • Visual Basic
    int _rows
    _rows As Integer
    Field Value
    Type Description
    System.Int32

    Properties

    View Source

    Rows

    The number of text rows displayed. Must be >= 1

    Declaration
    • C#
    • Visual Basic
    [JsonProperty("rows")]
    public int Rows { get; set; }
    <JsonProperty("rows")>
    Public Property Rows As Integer
    Property Value
    Type Description
    System.Int32
    Exceptions
    Type Condition
    System.ArgumentOutOfRangeException

    Thrown when the number of rows is set to an invalid value

    View Source

    Value

    The current value of the field

    Declaration
    • C#
    • Visual Basic
    [JsonProperty("value")]
    public string Value { get; set; }
    <JsonProperty("value")>
    Public Property Value As String
    Property Value
    Type Description
    System.String

    Methods

    View Source

    GetStringValue()

    Get the value associated with this view as a string if there is one.

    Declaration
    • C#
    • Visual Basic
    public override string GetStringValue()
    Public Overrides Function GetStringValue As String
    Returns
    Type Description
    System.String

    The value stored in this view as a string or NULL if there is no value stored.

    Overrides
    AbstractView.GetStringValue()
    Remarks

    The same as Value

    View Source

    ToHtml(Int32)

    Get a string representation of this view converted into HTML

    Declaration
    • C#
    • Visual Basic
    public override string ToHtml(int indent = 0)
    Public Overrides Function ToHtml(indent As Integer = 0) As String
    Parameters
    Type Name Description
    System.Int32 indent
    Returns
    Type Description
    System.String

    An HTML representation of the view as a string

    Overrides
    AbstractView.ToHtml(Int32)
    View Source

    Update(AbstractView)

    Update the view to the new state. This will change the inputted value

    Declaration
    • C#
    • Visual Basic
    public override void Update(AbstractView newViewState)
    Public Overrides Sub Update(newViewState As AbstractView)
    Parameters
    Type Name Description
    AbstractView newViewState

    The new state of the view being updated. This view's ID and Type must match the calling view exactly

    Overrides
    AbstractView.Update(AbstractView)
    Exceptions
    Type Condition
    ViewTypeMismatchException

    Thrown when the new view's class doesn't match the calling view

    View Source

    UpdateValue(String)

    Update the value of the view

    Declaration
    • C#
    • Visual Basic
    public override void UpdateValue(string value)
    Public Overrides Sub UpdateValue(value As String)
    Parameters
    Type Name Description
    System.String value

    The new value

    Overrides
    AbstractView.UpdateValue(String)
    • View Source
    In This Article
    Back to top HomeSeer Technologies