Version

TextWrapping Property

Gets/sets whether the text will wrap if there is not enough space for it to fit on one line.
Syntax
'Declaration
 
Public Property TextWrapping As TextWrapping
public TextWrapping TextWrapping {get; set;}
Example
The following code creates a XamTextEditor and sets its VerticalScrollBarVisibility to Visible. It also sets TextWrapping to Wrap so text wraps to multiple lines when there is not enough horizontal space available for the entire line of text. Also note that it sets IsAlwaysInEditMode to True. This is important because otherwise the editor will only display the vertical scrollbar when the editor has focus. When the editor doesn't have focus, the editor will exit edit mode. When not in edit mode, the scrollbars are't displayed.

<igEditors:XamTextEditor x:Name="textEditor7" 
    
Width="100" 
    
Height="40" 
     
VerticalScrollBarVisibility="Visible"
    
Value="This is first line of text. This is second long line of text."
    
TextWrapping="Wrap"
    
IsAlwaysInEditMode="True"
    
/>
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also