DrawingArea Class
Definition
Section titled “Definition”A simple surface for drawing text that can be moved and sized like a control.
[DataContract]public class DrawingArea : ControlBaseInheritance object → ControlBase
Constructors
Section titled “Constructors”DrawingArea(int, int)
Section titled “DrawingArea(int, int)”Creates a new drawing surface control with the specified width and height.
public DrawingArea(int width, int height)Parameters
Section titled “Parameters”width int
Width of the control.
height int
Height of the control.
Properties
Section titled “Properties”UseNormalStateOnly
Section titled “UseNormalStateOnly”When true, only uses Normal for drawing.
[DataMember]public bool UseNormalStateOnly { get; set; }Appearance
Section titled “Appearance”The current appearance based on the control state.
public ColoredGlyphBase? Appearance { get; protected set; }OnDraw
Section titled “OnDraw”Called when the surface is redrawn.
public Action<DrawingArea, TimeSpan>? OnDraw { get; set; }Methods
Section titled “Methods”UpdateAndRedraw(TimeSpan)
Section titled “UpdateAndRedraw(TimeSpan)”Redraws the control if applicable.
public override void UpdateAndRedraw(TimeSpan time)Parameters
Section titled “Parameters”time TimeSpan
The duration of thecurrent frame.