LazyStrings

References
public sealed class LazyStrings
A pair of LazyStrings.

Constructors

LazyStrings

#
public LazyStrings(
primary,
secondary = null
)

Properties

Primary

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

Secondary

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

Methods

Draw

#
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.
public void Draw(
context,
Font
font,
RectangleF
bounds,
Brush
primary,
Brush
secondary,
out RectangleF
primaryBounds,
out RectangleF
secondaryBounds
)

Draw

#
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.
public void Draw(
context,
Font
font,
RectangleF
bounds,
Brush
primary,
Brush
secondary
)

Width

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