Class ControlOverlayWithText
Represents a control overlay that displays text at a specified location with customizable font and colors.
public class ControlOverlayWithText : ControlOverlay, IBaseObjectWithId, IBaseObject, IControlOverlay
- Inheritance
-
ControlOverlayWithText
- Implements
Properties
- BackColor
Gets or sets the background color of the text. If
null, the background is transparent.
- Font
Gets or sets the font used to draw the text. If
null, the control's font is used.
- Location
Gets or sets the location where the text is drawn.
- Text
Gets or sets the text to display in the overlay.
- TextColor
Gets or sets the color of the text. If
null, the control's foreground color is used.
Methods
- GetBackColor(AbstractControl)
Gets the background color to use for drawing the text.
- GetFont(AbstractControl)
Gets the font to use for drawing the text.
- GetTextColor(AbstractControl)
Gets the color to use for drawing the text.
- OnPaint(AbstractControl, PaintEventArgs)
Paints the overlay on the specified control.