Bar.BarName Property
Gets or sets the name of the bar.
Namespace: DevExpress.XtraBars
Assembly: DevExpress.XtraBars.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
Property Value
Type | Description |
---|---|
String | A string value representing the name of the bar. |
Remarks
Use the BarName property to specify the string identifier for a bar. This property value is used when accessing bars using the Bars.Item property of the owning collection. If there are several bars with the same name in the collection, the first bar will be returned.
When a bar is assigned to a BarManager, the manager generates a unique name for the bar. This name consists of ‘Custom‘ and a number. This name is proposed by the designer when creating a new bar at design time. If creating a bar at runtime, this value is automatically assigned to the BarName property if another name is not specified as the constructor’s parameter.
Note: a bar is a component and thus it has a Name property identifying it among other components on the form. This property is not related to the BarName property.