EditorButton(ButtonPredefines, String, Int32, Boolean, Boolean, Boolean, HorzAlignment, Image, KeyShortcut, String, Object) Constructor
Initializes a new instance of the EditorButton class with the specified settings.
Namespace: DevExpress.XtraEditors.Controls
Assembly: DevExpress.XtraEditors.v24.2.dll
#Declaration
[EditorBrowsable(EditorBrowsableState.Never)]
public EditorButton(
ButtonPredefines kind,
string caption,
int width,
bool enabled,
bool visible,
bool isLeft,
HorzAlignment imageAlignment,
Image image,
KeyShortcut shortcut,
string toolTip,
object tag
)
#Parameters
Name | Type | Description |
---|---|---|
kind | Button |
A Button |
caption | String | A String value which specifies the button’s caption. This value is assigned to the Editor |
width | Int32 | An integer value specifying the button’s width. This value is assigned to the Editor |
enabled | Boolean | true if an editor button is enabled and an end-user can perform actions on it; otherwise, false. This value is assigned to the Editor |
visible | Boolean | true if the button is visible; otherwise, false. This value is assigned to the Editor |
is |
Boolean | true if the button is aligned to the editor’s left edge; false if the button is aligned to the editor’s right edge. This value is assigned to the Editor |
image |
Horz |
A Horz |
image | Image | A Image object which represents the image displayed on the button’s surface. This value is assigned to the Editor |
shortcut | Key |
A Key |
tool |
String | A String value which specifies the button’s tool tip. This value is assigned to the Editor |
tag | Object | A Object value which identifies the button. This value is assigned to the Editor |