Skip to main content

EditorButton(ButtonPredefines, String, Int32, Boolean, Boolean, Boolean, HorzAlignment, Image, String, KeyShortcut, AppearanceObject, String, Object, SuperToolTip, Boolean) Constructor

Initializes a new instance of the EditorButton class.

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,
    string imageUri,
    KeyShortcut shortcut,
    AppearanceObject appearance,
    string toolTip,
    object tag,
    SuperToolTip superTip,
    bool enableImageTransparency
)

Parameters

Name Type Description
kind ButtonPredefines

A ButtonPredefines enumeration value that specifies the button’s image type. 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

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.ImageAlignment property.

image Image

The value to initialize the button’s EditorButton.Image property.

imageUri String

The value to initialize the button’s image.

shortcut KeyShortcut

The value to initialize the button’s EditorButton.Shortcut property.

appearance AppearanceObject

A AppearanceObject object which provides the appearance settings used to paint the button. This value is assigned to the EditorButton.Appearance 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.

superTip SuperToolTip

A SuperToolTip object that represents a tooltip that supports multiple text and image regions. This value is assigned to the EditorButton.SuperTip property.

enableImageTransparency Boolean

A Boolean value that specifies whether specific pixels in the button’s image are displayed transparent. This value is assigned to the EditorButton.EnableImageTransparency property.

See Also