Spread WPF 18
GrapeCity.Wpf.SpreadSheet.CellType.Editors Namespace / GcTextBox Class / TextWrapping Property


In This Topic
    TextWrapping Property (GcTextBox)
    In This Topic
    Gets or sets how the text box should wrap text. This is a dependency property.
    Syntax
    'Declaration
     
    Public Property TextWrapping As TextWrapping
    'Usage
     
    Dim instance As GcTextBox
    Dim value As TextWrapping
     
    instance.TextWrapping = value
     
    value = instance.TextWrapping
    public TextWrapping TextWrapping {get; set;}

    Property Value

    One of the System.Windows.TextWrapping values that indicates how the text box should wrap text. The default is TextWrapping.NoWrap.
    Exceptions
    ExceptionDescription
    Value is not defined in System.Windows.TextWrapping enumeration.
    Remarks
    Setting the TextWrapping to System.Windows.TextWrapping.Wrap causes entered text to wrap to a new line when the edge of the GcTextBox control is reached, automatically expanding the height of the TextBox control to include room for a new line, if necessary.
    See Also