Skip to main content
Bar

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#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