BarEditItem.EditWidth Property
Gets or sets the width of an editor, hosted within this BarEditItem.
Namespace: DevExpress.XtraBars
Assembly: DevExpress.XtraBars.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
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.
Related GitHub Examples
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.