Method DrawLabel
DrawLabel(string, Font, Color, Color, Image?, RectD, HVAlignment?, int)
Draws text with the specified font, background and foreground colors, optional image, alignment and underlined mnemonic character.
public virtual RectD DrawLabel(string text, Font font, Color foreColor, Color backColor, Image? image, RectD rect, HVAlignment? alignment = null, int indexAccel = -1)
Parameters
text
stringText to draw.
font
FontFont used to draw the text.
foreColor
ColorForeground color of the text.
backColor
ColorBackground color of the text. If parameter is equal to Empty, background will not be painted.
image
ImageOptional image.
rect
RectDRectangle in which drawing is performed.
alignment
HVAlignment?Alignment of the text.
indexAccel
intIndex of underlined mnemonic character.
Returns
- RectD
The bounding rectangle.
DrawLabel(ref DrawLabelParams)
Draws text with the specified font, background and foreground colors, optional image, alignment and underlined mnemonic character.
public virtual RectD DrawLabel(ref Graphics.DrawLabelParams prm)
Parameters
prm
Graphics.DrawLabelParamsParameters spedified using Graphics.DrawLabelParams structure.