Back to Devexpress

TextEditBase.TextWrapping Property

wpf-devexpress-dot-xpf-dot-editors-dot-texteditbase.md

latest3.8 KB
Original Source

TextEditBase.TextWrapping Property

Gets or sets whether the text wraps when it reaches the edge of the text box. This is a dependency property.

Namespace : DevExpress.Xpf.Editors

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public TextWrapping TextWrapping { get; set; }
vb
Public Property TextWrapping As TextWrapping

Property Value

TypeDescription
TextWrapping

One of the TextWrapping enumeration values.

|

Remarks

If text wrapping is enabled, the editor’s text automatically wraps if it overflows beyond the available text box width.

The following code snippets (auto-collected from DevExpress Examples) contain references to the TextWrapping property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

spell-checker-bind-dictionaries-in-mvvm-applications/CS/DXSpellCheckerBindingDictionaries/MainWindow.xaml#L26

xml
EditValue=" Das Regcht hat viele Funktionem. Die wichtigste darunter ist die Sicherung des Friedens im Lande."
TextWrapping="Wrap" VerticalContentAlignment="Top" />

wpf-scheduler-specify-custom-edit-and-recurrence-dialogs/CS/CustomMvvmFormWithRecurrenceExample/HospitalAppointmentWindow.xaml#L100

xml
EditValue ="{Binding CustomFields.Notes, Mode=TwoWay}"
TextWrapping="Wrap"
VerticalScrollBarVisibility="Visible" />

wpf-scheduler-implement-custom-inplace-appointment-editor/CS/CustomInplaceEditorExample/MainWindow.xaml#L30

xml
Text="{Binding Subject, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
        TextWrapping="Wrap" />
</DataTemplate>

wpf-richedit-use-document-iterator-and-visitor/CS/DocumentIteratorExample/MainWindow.xaml#L17

xml
<dxe:TextEdit x:Name="textEdit1"
              TextWrapping="Wrap"
              Margin="0,50,0,0"/>

wpf-pdf-viewer-draw-a-rectangle-over-a-document/CS/MainWindow.xaml#L37

xml
Grid.Column="0"
    TextWrapping="WrapWithOverflow" />
<dxe:TextEdit

See Also

TextEditBase Class

TextEditBase Members

DevExpress.Xpf.Editors Namespace