WindowsUIButton(String, Boolean, WindowsUIButtonImageOptions, ButtonStyle, String, Int32, Boolean, SuperToolTip, Boolean, Boolean, Boolean, Object, Int32, Boolean) Constructor
Initializes a new instance of the WindowsUIButton class with the specified settings.
Namespace: DevExpress.XtraBars.Docking2010
Assembly: DevExpress.XtraBars.v20.2.dll
Declaration
[EditorButtonPreferredConstructor]
public WindowsUIButton(
string caption,
bool useCaption,
WindowsUIButtonImageOptions imageOptions,
ButtonStyle style,
string toolTip,
int visibleIndex,
bool enabled,
SuperToolTip superTip,
bool useImage,
bool checked,
bool visible,
object tag,
int groupIndex,
bool isLeft
)
<EditorButtonPreferredConstructor>
Public Sub New(
caption As String,
useCaption As Boolean,
imageOptions As WindowsUIButtonImageOptions,
style As ButtonStyle,
toolTip As String,
visibleIndex As Integer,
enabled As Boolean,
superTip As SuperToolTip,
useImage As Boolean,
checked As Boolean,
visible As Boolean,
tag As Object,
groupIndex As Integer,
isLeft As Boolean
)
Parameters
Name | Type | Description |
---|---|---|
caption | String | A String value that is the button text. |
useCaption | Boolean | true, if the button should display its caption; otherwise, false. |
imageOptions | DevExpress.XtraBars.Docking2010.WindowsUIButtonImageOptions | A WindowsUIButtonImageOptions object that specifies image options. |
style | ButtonStyle | A Style enumerator value that specifies whether this button should be a regular push button or check button that supports regular and pressed states. |
toolTip | String | A String value that is the button hint. |
visibleIndex | Int32 | An Int32 value that specifies the order for this button within its parent container. |
enabled | Boolean | true, if this button is enabled; otherwise, false. |
superTip | SuperToolTip | A SuperTip object assigned to this button. |
useImage | Boolean | true, if this button should display its glyph; otherwise, false. |
checked | Boolean | true, if this button is in the pressed state; otherwise, false. Pressed state is only supported by buttons whose style parameter is set to ButtonStyle.CheckButton. |
visible | Boolean | true, if this button is visible to end-users; otherwise, false. |
tag | Object | An Object that stores any required info related to this button. |
groupIndex | Int32 | An Int32 value that specifies to which group this button belongs. |
isLeft | Boolean | true, if the button should be aligned by the left edge of the parent container; otherwise, false. |