Back to Devexpress

SankeyNodeLabel.MaxWidth Property

corelibraries-devexpress-dot-xtracharts-dot-sankey-dot-sankeynodelabel-57c9e449.md

latest1.8 KB
Original Source

SankeyNodeLabel.MaxWidth Property

Gets or sets the maximum width allowed for node labels in pixels.

Namespace : DevExpress.XtraCharts.Sankey

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
[XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)]
public int MaxWidth { get; set; }
vb
<XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)>
Public Property MaxWidth As Integer

Property Value

TypeDescription
Int32

A value that specifies the maximum label width. The initial value is set to 0. This means that the label width is unlimited.

|

Remarks

When the label width is limited by the MaxWidth property value or if a label’s text contains new line characters, its text is split across multiple lines. In this instance, the MaxLineCount property limits the number of text lines allowed.

If a label’s length exceeds the limit defined by the MaxLineCount property, the last line of text is cut off by an ellipsis. To force a label to display its entire content regardless of label size, set the MaxLineCount property to 0.

See Also

SankeyNodeLabel Class

SankeyNodeLabel Members

DevExpress.XtraCharts.Sankey Namespace