EditorButton.Kind Property

Gets or sets the type of image to display within the button.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v21.2.dll

Declaration

[DefaultValue(ButtonPredefines.Ellipsis)]
[DXCategory("Appearance")]
public virtual ButtonPredefines Kind { get; set; }

Property Value

Type Default Description
ButtonPredefines

Ellipsis

A ButtonPredefines enumerator value that specifies the type of image to display within the button.

Available values:

Show 22 items
Name Description
Glyph

A custom bitmap is drawn on the button’s surface.

Down

A Down-arrow is drawn on the button’s surface.

ButtonPredefinesDown.png

Up

An Up-arrow is drawn on the button’s surface.

ButtomPredefinesUp

Left

A Left-arrow symbol is drawn on the button’s surface.

ButtomPredefinesLeft

Right

A Right-arrow is drawn the button’s surface.

ButtomPredefinesRight

Ellipsis

An Ellipsis symbol is drawn on the button’s surface.

ButtonPredefinesEllipsis.png

Delete

A Delete symbol is drawn on the button’s surface.

ButtonPredefinesDelete.png

OK

An OK sign is drawn on the button’s surface.

ButtomPredefinesOK

Plus

A Plus sign is drawn on the button’s surface.

ButtomPredefinesPlus

Minus

A Minus sign is drawn on the button’s surface.

ButtomPredefinesMinus

Redo

A Redo symbol is drawn on the button’s surface.

ButtomPredefinesRedo

Undo

An Undo symbol is drawn on the button’s surface.

ButtomPredefinesUndo

Combo

A Down-arrow for a combo box is drawn on the button’s surface.

ButtonPredefinesCombo

SpinUp

An up-arrow for a spin editor is displayed on the button’s surface.

ButtonPredefinesSpinUp

SpinDown

A down-arrow for a spin editor is displayed on the button’s surface.

ButtonPredefinesSpinDown

SpinLeft

A left-arrow for a spin editor is displayed on the button’s surface.

ButtonPredefinesSpinLeft

SpinRight

A right-arrow for a spin editor is displayed on the button’s surface.

ButtonPredefinesSpinRight

Close

A Close symbol is displayed on the button’s surface.

ButtonPredefinesClose

DropDown

A Down-arrow is drawn on the button’s surface. Unlike, the Down button, this kind of button allows text to be displayed next to the down-arrow.

ButtonPredefinesDropDown

Search

A Search symbol is drawn on the button’s surface.

ButtonPredefinesSearch

Clear

A Clear symbol is drawn on the button’s surface.

ButtonPredefinesClear

Separator

A Separator.

ButtonPredefinesSeparator

Remarks

The Kind property allows you to specify the type of image to display within the button. The ButtonPredefines type enumerates possible image types. Setting the Kind property to Glyph allows you to display a custom image specified by the EditorButton.Image property. If Kind is set to a value other than Glyph, the button displays a predefined image. See the ButtonPredefines topic for sample screenshots.

If the Kind property is set to Glyph, Ellipsis, Delete, OK, Plus, Minus, Redo, Undo or DropDown, it is possible to display the button’s EditorButton.Caption near the image. To allow the display of the button’s caption and image at the same time, set the EditorButton.ImageLocation property to any value except for MiddleCenter. Otherwise, only the image is displayed.

See Also