Constructor DrawLabelParams
DrawLabelParams(string, Font, Color)
Initializes a new instance of the Graphics.DrawLabelParams struct.
public DrawLabelParams(string text, Font font, Color foreColor)
Parameters
DrawLabelParams(string, Font, Color, Color, Image?, RectD, HVAlignment?, int)
Initializes a new instance of the Graphics.DrawLabelParams struct with the specified initial values.
public DrawLabelParams(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.