Struct Graphics.DrawLabelParams
Contains parameters for the draw label method.
public struct Graphics.DrawLabelParams
Constructors
- DrawLabelParams(string, Font, Color)
Initializes a new instance of the Graphics.DrawLabelParams struct.
- DrawLabelParams(string, Font, Color, Color, Image?, RectD, HVAlignment?, int)
Initializes a new instance of the Graphics.DrawLabelParams struct with the specified initial values.
Fields
- BackgroundColor
Gets or sets background color of the text. If property value equals to Empty (default value), background will not be painted.
- DrawDebugCorners
Gets or sets whether to draw debug corners around elements.
- Flags
Gets or sets flags that can be used to customize label painting.
- Font
Gets or sets font used to draw the text.
- ForegroundColor
Gets or sets foreground color of the text.
- Image
Gets or sets optional image which is shown near the text. Default is Null.
- ImageLabelDistance
Gets or sets distance between image and label. If Null, DefaultImageLabelDistance is used.
- IndexAccel
Gets or sets index of underlined mnemonic character.
- IsVertical
Gets or sets a value which specifies whether image to text are aligned vertically or horizontally.
- Rect
Gets or sets rectangle in which drawing is performed.
- ResultBounds
Gets all elements bounding rectangle after drawing. This is filled even if Visible is False.
- ResultRects
Gets element bounds after drawing was performed. This is filled with bounds only if Visible is True.
- ResultSizes
Gets element sizes after drawing was performed. This is filled with sizes even if Visible is False.
- Text
Gets or sets text to draw.
- TextAndFontStyle
Gets or sets text with attributes to use instead of Text.
- Visible
Gets or sets whether painting is actually performed. This property may be useful when you need to calculate element sizes without painting.