Back to Devexpress

BarEditItem.Width Property

windowsforms-devexpress-dot-xtrabars-dot-baredititem-69507ffe.md

latest2.5 KB
Original Source

BarEditItem.Width Property

This member supports the internal infrastructure, and is not intended to be used directly from your code.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public override int Width { get; set; }
vb
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
Public Overrides Property Width As Integer

Property Value

TypeDescription
Int32

For internal use.

|

Remarks

To set the width of an editor within this BarEditItem, use the BarEditItem.EditWidth property instead.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Width 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.

winforms-bars-create-baredititem/CS/Form1.cs#L144

csharp
item.EditValue = "[n/a]";
item.Width = 100;
barStandard.AddItem(item);

winforms-bars-create-baredititem/VB/Form1.vb#L139

vb
item.EditValue = "[n/a]"
item.Width = 100
barStandard.AddItem(item)

See Also

EditWidth

BarEditItem Class

BarEditItem Members

DevExpress.XtraBars Namespace