Skip to main content
Bar

BarEditItem.EditWidth Property

Gets or sets the width of an editor, hosted within this BarEditItem.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

Declaration

[Browsable(true)]
public virtual int EditWidth { get; set; }

Property Value

Type Description
Int32

An Int32 value that is the width of an editor, hosted within this BarEditItem.

Remarks

The BarItem.Size property allows you to set the BarEditItem‘s total width. Use the EditWidth property to set the width of an editor within this BarEditItem. The BarEditItem‘s region that displays the item glyph and caption will then be Size.Width - EditWidth pixels in length.

The default value of the EditWidth property is -1. In this case, the actual width of most in-place editors is 50 pixels. Certain editors (for instance, a RepositoryItemRatingControl and RepositoryItemToggleSwitch) have another default width.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the EditWidth property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also