windowsforms-devexpress-dot-xtrabars-dot-baredititem-7006ae78.md
Gets or sets the width of an editor, hosted within this BarEditItem.
Namespace : DevExpress.XtraBars
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[Browsable(true)]
public virtual int EditWidth { get; set; }
<Browsable(True)>
Public Overridable Property EditWidth As Integer
| Type | Description |
|---|---|
| Int32 |
An Int32 value that is the width of an editor, hosted within this BarEditItem.
|
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.
urlBarItem.Caption = "URI Pattern";
urlBarItem.EditWidth = 150;
group.ItemLinks.Add(urlBarItem);
urlBarItem.Caption = "URI Pattern"
urlBarItem.EditWidth = 150
group.ItemLinks.Add(urlBarItem)
See Also