WindowsUIButton(String, Image, Int32, ButtonStyle, Int32) Constructor

Initializes a new instance of the WindowsUIButton class with the specified settings, including caption, icon, button style and group index.

Namespace: DevExpress.XtraBars.Docking2010

Assembly: DevExpress.XtraBars.v20.2.dll

Declaration

[EditorBrowsable(EditorBrowsableState.Never)]
public WindowsUIButton(
    string caption,
    Image image,
    int imageIndex,
    ButtonStyle style,
    int groupIndex
)
<EditorBrowsable(EditorBrowsableState.Never)>
Public Sub New(
    caption As String,
    image As Image,
    imageIndex As Integer,
    style As ButtonStyle,
    groupIndex As Integer
)

Parameters

Name Type Description
caption String

A String value that is the newly created WindowsUIButton's caption.

image Image

An Image that is the newly created WindowsUIButton's icon.

imageIndex Int32

An Int32 value that specifies an image within the IButtonProperties.Images collection as the newly created WindowsUIButton's icon.

style ButtonStyle

A ButtonStyle enumerator value specifying whether the newly created WindowsUIButton is a regular (push) or check button.

groupIndex Int32

An Int32 value that specifies a radio button group to which the newly created WindowsUIButton belongs (for check-buttons only).

See Also