DrawingCache
Namespace: TagBites.WinSchedulers.Drawing
Assembly: TagBites.WinSchedulers.dll
Product: TagBites.WinSchedulers v. 1.3.8
Provides caching functionality for a Brush, Pen and FormattedTextCache.
public class DrawingCacheInheritance: object → DrawingCache
Constructors
Section titled “Constructors”DrawingCache(string)
Section titled “DrawingCache(string)”Initializes a new instance of the DrawingCache class for the specified font family typeface name.
public DrawingCache(string typeFaceName)Parameters
Section titled “Parameters”typeFaceNamestring
The typeface name for the specified font family.
Methods
Section titled “Methods”Begin()
Section titled “Begin()”public void Begin()public void End()GetFormattedText(string, Color, int, int)
Section titled “GetFormattedText(string, Color, int, int)”Returns the formatted text by specified text, color and maximum dimensions.
public FormattedText GetFormattedText(string text, Color color, int maxWidth, int maxHeight)Parameters
Section titled “Parameters”textstring
The text to be displayed.colorColor
The color used to paint the text.maxWidthint
The maximum text width (length) for a line of text.maxHeightint
The maximum height of a text column.
Returns
Section titled “Returns”The FormattedText object representation of the formatted text.
GetSimplePen(Color)
Section titled “GetSimplePen(Color)”Gets the pen by specified color.
public Pen GetSimplePen(Color color)Parameters
Section titled “Parameters”colorColor
Returns
Section titled “Returns”GetSolidBrush(Color)
Section titled “GetSolidBrush(Color)”Gets the brush by specified color.
public Brush GetSolidBrush(Color color)Parameters
Section titled “Parameters”colorColor