Table of Contents

Method DrawHeaderButtonContents

Namespace
Alternet.Drawing
Assembly
Alternet.UI.dll

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

Draws the contents of a header control button (label, sort arrows, etc.). Normally only called by DrawHeaderButton(Control, Graphics, RectD, DrawFlags, HeaderSortIconType, HeaderButtonParams?).

public int DrawHeaderButtonContents(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

The flags parameter may support the Selected, Disabled and Current.