Table of Contents

Method DrawHeaderButton

Namespace
Alternet.Drawing
Assembly
Alternet.UI.dll

DrawHeaderButton(Control, Graphics, RectD, DrawFlags, HeaderSortIconType, HeaderButtonParams?)

Draws the header control button (used, for example, by ListView like controls).

public int DrawHeaderButton(Control control, Graphics dc, RectD rect, WxControlPainterHandler.DrawFlags flags = DrawFlags.None, WxControlPainterHandler.HeaderSortIconType sortArrow = HeaderSortIconType.None, WxControlPainterHandler.HeaderButtonParams? headerButtonParams = null)

Parameters

control Control

Control in which drawing will be performed.

dc Graphics

Drawing context.

rect RectD

Rectangle in which control is painted.

flags WxControlPainterHandler.DrawFlags

Drawing flags.

sortArrow WxControlPainterHandler.HeaderSortIconType

Type of the sort icon.

headerButtonParams WxControlPainterHandler.HeaderButtonParams

Button parameters.

Returns

int

The optimal width to contain the unabbreviated label text or bitmap, the sort arrow if present, and internal margins.

Remarks

Depending on platforms the flags parameter may support the Selected, Disabled and Current.