Back to Devexpress

Bar(BarManager, String, BarDockStyle, Rectangle, LinksInfo, Point, Int32, BarCanDockStyle, Color) Constructor

windowsforms-devexpress-dot-xtrabars-dot-bar-dot-bar-x28-barmanager-string-bardockstyle-rectangle-linksinfo-point-int32-barcandockstyle-color-x29.md

latest4.4 KB
Original Source

Bar(BarManager, String, BarDockStyle, Rectangle, LinksInfo, Point, Int32, BarCanDockStyle, Color) Constructor

Initializes a new instance of the Bar class with the specified settings.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public Bar(
    BarManager manager,
    string name,
    BarDockStyle ADockStyle,
    Rectangle floatRect,
    LinksInfo linksInfo,
    Point dockPos,
    int offset,
    BarCanDockStyle canDockStyle,
    Color backColor
)
vb
Public Sub New(
    manager As BarManager,
    name As String,
    ADockStyle As BarDockStyle,
    floatRect As Rectangle,
    linksInfo As LinksInfo,
    dockPos As Point,
    offset As Integer,
    canDockStyle As BarCanDockStyle,
    backColor As Color
)

Parameters

NameTypeDescription
managerBarManager

A Bar Manager that owns the newly created Bar. This value is assigned to the Bar.Manager property.

| | name | String |

A String value that is the Bar‘s name. This value is assigned to the Bar.BarName property.

| | ADockStyle | BarDockStyle |

A BarDockStyle enumerator value that specifies the Bar‘s dock style. Determines the Bar.DockStyle property.

| | floatRect | Rectangle |

A System.Drawing.Rectangle structure that specifies the floating size and location of the created bar. This value is used to initialize the Bar.FloatSize and Bar.FloatLocation properties.

| | linksInfo | DevExpress.XtraBars.LinksInfo |

A LinksInfo object representing the internal links collection. This value is assigned to the Bar.LinksPersistInfo property.

| | dockPos | Point |

A System.Drawing.Point structure specifying the position of the created bar among other bars docked to the same container’s edge. This value is used to initialize the Bar.DockRow and Bar.DockCol properties.

| | offset | Int32 |

An Int32 value that specifies the offset of the created bar from the dock site’s left or top edge (when the bar is oriented horizontally or vertically, respectively). This value is assigned to the Bar.Offset property.

| | canDockStyle | BarCanDockStyle |

A set of BarDockStyle flags that specifies edges of the container to which the bar can be docked. This value is assigned to the Bar.CanDockStyle property.

| | backColor | Color |

A System.Drawing.Color value that specifies the bar’s background color.

|

See Also

Bar Class

Bar Members

DevExpress.XtraBars Namespace