Skip to main content

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.v23.2.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,
    KeyShortcut shortcut,
    string toolTip,
    object tag
)

Parameters

Name Type Description
kind ButtonPredefines

A ButtonPredefines value that specifies the predefined image for the button. This value is assigned to the 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

true if an editor button is enabled and an end-user can perform actions on it; otherwise, false. This value is assigned to the EditorButton.Enabled property.

visible Boolean

true if the button is visible; otherwise, false. This value is assigned to the EditorButton.Visible property.

isLeft 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 EditorButton.IsLeft property.

imageAlignment HorzAlignment

A HorzAlignment enumeration value which specifies the alignment of the glyph relative to the button’s caption. This value is used to initialize the EditorButton.ImageLocation property.

image Image

A Image object which represents the image displayed on the button’s surface. This value is assigned to the EditorButton.Image property.

shortcut KeyShortcut

A KeyShortcut object which represents the button’s shortcut. This value is assigned to the EditorButton.Shortcut property.

toolTip String

A String value which specifies the button’s tool tip. This value is assigned to the EditorButton.ToolTip property.

tag Object

A Object value which identifies the button. This value is assigned to the EditorButton.Tag property.

See Also