PinnedText

References
public class PinnedText
Creates a preplaced bit of text, either left, centre or right aligned within some frame.

Properties

Font

#
Gets the font used to align this text.
public Font Font { get; }

Frame

#
Bounding rectangle.
public RectangleF Frame { get; }

Text

#
Gets the text.
public string Text { get; }

Methods

Centre

#
Create left aligned pinned text.
public static PinnedText Centre(
text,
Text to pin.
Font
font,
Font to pin with.
RectangleF
frame,
Boundary frame.
offset
Horizontal offset. Positive values offset towards the right.
)

Draw

#
Draw this pinned text.
public void Draw(
Graphics
graphics,
Color
colour
)

Left

#
Create left aligned pinned text.
public static PinnedText Left(
text,
Text to pin.
Font
font,
Font to pin with.
RectangleF
frame,
Boundary frame.
offset
Horizontal offset. Positive values offset towards the right.
)

Rebase

#
Relocate this pinned text without re-measuring the string.
public PinnedText Rebase(
PointF
newFrameLocation
)

Right

#
Create left aligned pinned text.
public static PinnedText Right(
text,
Text to pin.
Font
font,
Font to pin with.
RectangleF
frame,
Boundary frame.
offset
Horizontal offset. Positive values offset towards the left.
)