Method DrawHeaderButtonContents
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
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.