Table of Contents

Method DrawItemText

Namespace
Alternet.Drawing
Assembly
Alternet.UI.dll

DrawItemText(Control, Graphics, string, RectD, GenericAlignment, DrawFlags, TextEllipsizeType)

Draws text using the appropriate color for normal and selected states.

public void DrawItemText(Control control, Graphics dc, string text, RectD rect, GenericAlignment align = GenericAlignment.Left, WxControlPainterHandler.DrawFlags flags = DrawFlags.None, TextEllipsizeType ellipsizeMode = TextEllipsizeType.End)

Parameters

control Control

Control in which drawing will be performed.

dc Graphics

Drawing context.

text string

Text to draw.

rect RectD

Rectangle in which control is painted.

align GenericAlignment

Text alignment.

flags WxControlPainterHandler.DrawFlags

Drawing flags.

ellipsizeMode TextEllipsizeType

Text ellipsize mode.