Back to Devexpress

BarListItem.MaxSubItemTextWidth Property

windowsforms-devexpress-dot-xtrabars-dot-barlistitem-a861d4eb.md

latest2.0 KB
Original Source

BarListItem.MaxSubItemTextWidth Property

Gets or sets the maximum length (in pixels) of the items that belong to the current BarListItem object.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(0)]
public int MaxSubItemTextWidth { get; set; }
vb
<DefaultValue(0)>
Public Property MaxSubItemTextWidth As Integer

Property Value

TypeDefaultDescription
Int320

An integer that specifies the maximum length of the items that belong to the current BarListItem object.

|

Remarks

The MaxSubItemTextWidth property allows you to limit the width of the items that belong to the current BarListItem object. If this property is set to 0 the text length of the items is not limited.

If the length of a specific item is greater that the MaxSubItemTextWidth property’s value the characters in the center of the item will be removed and replaced with the ellipsis character (…). In the image below the MaxSubItemTextWidth property of the BarListItem object which displays recently opened files is set to 185 :

See Also

Strings

BarListItem Class

BarListItem Members

DevExpress.XtraBars Namespace