Skip to content
Auto
Products

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 DrawingCache

Inheritance: object → DrawingCache

Initializes a new instance of the DrawingCache class for the specified font family typeface name.

public DrawingCache(string typeFaceName)
  • typeFaceName string
    The typeface name for the specified font family.
public void Begin()
public void End()

Returns the formatted text by specified text, color and maximum dimensions.

public FormattedText GetFormattedText(string text, Color color, int maxWidth, int maxHeight)
  • text string
    The text to be displayed.
  • color Color
    The color used to paint the text.
  • maxWidth int
    The maximum text width (length) for a line of text.
  • maxHeight int
    The maximum height of a text column.

FormattedText

The FormattedText object representation of the formatted text.

Gets the pen by specified color.

public Pen GetSimplePen(Color color)

Pen

Gets the brush by specified color.

public Brush GetSolidBrush(Color color)

Brush