Back to Devexpress

DxTreeView.TextWrapEnabled Property

blazor-devexpress-dot-blazor-dot-dxtreeview-46593671.md

latest1.7 KB
Original Source

DxTreeView.TextWrapEnabled Property

Specifies whether word wrap is enabled.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(true)]
[Parameter]
public bool TextWrapEnabled { get; set; }

Property Value

TypeDefaultDescription
Booleantrue

true to enable word wrap; otherwise, false.

|

Remarks

If a Text value does not fit into a node as a single line, the node displays multiple lines of text. Set the TextWrapEnabled property to false to disable word wrap and trim extra words:

razor
<div class="container">
    <DxTreeView TextWrapEnabled="false">
        <Nodes>
            <DxTreeViewNode Text="Data Binding">
                <Nodes>
                    <DxTreeViewNode Text="Large Data (Instant Feedback Source)" />
                    <DxTreeViewNode Text="Large Data (Queryable)" />
                    <DxTreeViewNode Text="Unbound Columns" />
                </Nodes>
            </DxTreeViewNode>
        </Nodes>
    </DxTreeView>
</div>
css
.container {
    border: 2px dashed black;
    width: 300px;
}

See Also

DxTreeView Class

DxTreeView Members

DevExpress.Blazor Namespace