CachedTrimmedText

public class CachedTrimmedText
Caches a trimmed, left aligned piece of text.

Constructors

CachedTrimmedText

#
public CachedTrimmedText(
original
)

Properties

OriginalSize

#
Gets the size of the original text.
public SizeF OriginalSize { get; }

OriginalText

#
Gets the original piece of text.
public string OriginalText { get; }

Methods

CreateOriginalMetrics

#
Ensure that the OriginalSize is set based on a given font.
public void CreateOriginalMetrics(
Font
font
)

Draw

#
Draw this string into a frame.
public void Draw(
Graphics
graphics,
Graphics object to draw with.
Brush
fill,
Text fill.
Font
font,
Tex font.
RectangleF
frame,
Bounds within which to draw.
horizontal,
Horizontal alignment within bounds. -1=left, 0=centre, +1=right.
vertical
Vertical alignment within bounds. -1=top, 0=centre, +1=bottom.
)