Skip to content

DrawingArea Class

A simple surface for drawing text that can be moved and sized like a control.

C#
[DataContract]
public class DrawingArea : ControlBase

Inheritance objectControlBase

Creates a new drawing surface control with the specified width and height.

C#
public DrawingArea(int width, int height)

width int
Width of the control.

height int
Height of the control.

When true, only uses Normal for drawing.

C#
[DataMember]
public bool UseNormalStateOnly { get; set; }

The current appearance based on the control state.

C#
public ColoredGlyphBase? Appearance { get; protected set; }

Called when the surface is redrawn.

C#
public Action<DrawingArea, TimeSpan>? OnDraw { get; set; }

Redraws the control if applicable.

C#
public override void UpdateAndRedraw(TimeSpan time)

time TimeSpan
The duration of thecurrent frame.