LazyStrings

References
public sealed class LazyStrings
A pair of LazyStrings.

Constructors

LazyStrings

#
public LazyStrings(LazyString primary, LazyString secondary = null)
primary (LazyString)
secondary (LazyString = null)

Properties

Primary

#
public LazyString Primary { get; }
Gets the primary string. This is never null.

Secondary

#
public LazyString Secondary { get; }
Gets the secondary string, this may be null.

Methods

Draw

#
public void Draw(Context context, Font font, RectangleF bounds, Brush primary, Brush secondary, out RectangleF primaryBounds, out RectangleF secondaryBounds)
Draw this pair into a box. The secondary string will be drawn first, right-aligned inside the bounds. Then the primary string will be drawn in a left-aligned fashion.
context (Context)
font (Font)
bounds (RectangleF)
primary (Brush)
secondary (Brush)
primaryBounds (out RectangleF)
secondaryBounds (out RectangleF)

Draw

#
public void Draw(Context context, Font font, RectangleF bounds, Brush primary, Brush secondary)
Draw this pair into a box. The secondary string will be drawn first, right-aligned inside the bounds. Then the primary string will be drawn in a left-aligned fashion.
context (Context)
font (Font)
bounds (RectangleF)
primary (Brush)
secondary (Brush)

Width

#
public int Width(Font font)
Compute the width of this pair.
font (Font)