Skip to main content
A newer version of this page is available. .
Bar

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.v19.1.dll

Declaration

[DefaultValue(0)]
public int MaxSubItemTextWidth { get; set; }

Property Value

Type Default Description
Int32 0

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:

BarListItem_MaxSubItemTextWidth

See Also