IDrawingContext - ahatornn/clforms GitHub Wiki

IDrawingContext

ClForms.Abstractions.Engine.IDrawingContext
Drawing context

public interface IDrawingContext: IPaintContext

Properties

Name Type Description
Background IGraphicsDevice<Color> Gets IGraphicsDevice{Color} of background
Foreground IGraphicsDevice<Color> Gets IGraphicsDevice{Color} of text color
Chars IGraphicsDevice<char> Gets IGraphicsDevice{Color} of text
ContextBounds Rect Gets the rectangular drawing context area
ControlId long Gets the identifier of the component that represents current drawing context
Parent IDrawingContext Gets parent context reference

Methods

Syntax Description
Release(Color backgroundColor, Color foregroundColor, char @char) Prepare context for drawing
Release(Color backgroundColor, Color foregroundColor) Prepare context for drawing
Clone(long controlId) Creates a shallow copy of the IDrawingContext
⚠️ **GitHub.com Fallback** ⚠️