Method DrawHeaderButton
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
ControlControl in which drawing will be performed.
dc
GraphicsDrawing context.
rect
RectDRectangle in which control is painted.
flags
WxControlPainterHandler.DrawFlagsDrawing flags.
sortArrow
WxControlPainterHandler.HeaderSortIconTypeType of the sort icon.
headerButtonParams
WxControlPainterHandler.HeaderButtonParamsButton parameters.
Returns
- int
The optimal width to contain the unabbreviated label text or bitmap, the sort arrow if present, and internal margins.