Back to Devexpress

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

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

latest6.3 KB
Original Source

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

OBSOLETE

The 'BarOptionFlags AOptions' parameter is ignored. Please remove this parameter from your constructor call

Initializes a new Bar class instance.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Obsolete("The 'BarOptionFlags AOptions' parameter is ignored. Please remove this parameter from your constructor call")]
public Bar(
    BarManager manager,
    string name,
    BarDockStyle ADockStyle,
    BarOptionFlags AOptions,
    Rectangle floatRect,
    LinksInfo linksInfo,
    Point dockPos,
    int offset,
    BarCanDockStyle canDockStyle,
    Color backColor,
    Image backImage,
    int barItemHorzIndent,
    int barItemVertIndent
)
vb
<Obsolete("The 'BarOptionFlags AOptions' parameter is ignored. Please remove this parameter from your constructor call")>
Public Sub New(
    manager As BarManager,
    name As String,
    ADockStyle As BarDockStyle,
    AOptions As BarOptionFlags,
    floatRect As Rectangle,
    linksInfo As LinksInfo,
    dockPos As Point,
    offset As Integer,
    canDockStyle As BarCanDockStyle,
    backColor As Color,
    backImage As Image,
    barItemHorzIndent As Integer,
    barItemVertIndent As Integer
)

Parameters

NameTypeDescription
managerBarManager

A BarManager object representing the owner of the created bar. This value is assigned to the Bar.Manager property.

| | name | String |

A string value representing the name of the created bar. This value is assigned to the Bar.BarName property.

| | ADockStyle | BarDockStyle |

A BarDockStyle enumeration value specifying the edge of the container to which the bar is docked. This value is assigned to the Bar.DockStyle property.

| | AOptions | BarOptionFlags |

This parameter is ignored.

| | 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 integer 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 structure that specifies the bar’s background color.

| | backImage | Image |

A System.Drawing.Image object representing the bar’s background image.

| | barItemHorzIndent | Int32 |

An integer value specifying the indent of item contents to their edges in the same direction as the current bar’s orientation. This value is assigned to the Bar.BarItemHorzIndent property.

| | barItemVertIndent | Int32 |

An integer value specifying the indent of item contents to their edges in the opposite direction of the current bar’s orientation. This value is assigned to the Bar.BarItemVertIndent property.

|

Remarks

Do not use this constructor in applications. It is used internally to provide support for the previous XtraBars versions.

See Also

Bar Class

Bar Members

DevExpress.XtraBars Namespace