EditorButton(ButtonPredefines, String, Int32, Boolean, Boolean, Boolean, HorzAlignment, Image) Constructor
Initializes a new EditorButton instance with the specified property values.
Namespace: DevExpress.XtraEditors.Controls
Assembly: DevExpress.XtraEditors.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
[EditorBrowsable(EditorBrowsableState.Never)]
public EditorButton(
ButtonPredefines kind,
string caption,
int width,
bool enabled,
bool visible,
bool isLeft,
HorzAlignment imageAlignment,
Image image
)
Parameters
Name | Type | Description |
---|---|---|
kind | ButtonPredefines | The value to initialize the button’s EditorButton.Kind property. |
caption | String | A String value which specifies the button’s caption. This value is assigned to the EditorButton.Caption property. |
width | Int32 | An integer value specifying the button’s width. This value is assigned to the EditorButton.Width property. |
enabled | Boolean | The value to initialize the button’s EditorButton.Enabled property. |
visible | Boolean | The value to initialize the button’s EditorButton.Visible property. |
isLeft | Boolean | The value to initialize the button’s EditorButton.IsLeft property. |
imageAlignment | HorzAlignment | The value to initialize the button’s EditorButton.ImageLocation property. |
image | Image | The value to initialize the button’s EditorButton.Image property. |
Remarks
Use the constructor to create a button for a ButtonEdit control. After the button is created, you can add it to the button collection of a control using the EditorButtonCollection.Add method. To access the button’s collection, see the RepositoryItemButtonEdit.Buttons property.