Constructor MetafileTextCommand
MetafileTextCommand(string, MetafilePoint, IReadOnlyList<int>, MetafileFont, ColorRgb, MetafileTextAlignment, ColorRgb?)
Initializes a text command.
public MetafileTextCommand(string text, MetafilePoint origin, IReadOnlyList<int> advances, MetafileFont font, ColorRgb color, MetafileTextAlignment alignment, ColorRgb? backgroundColor)
Parameters
textstringThe characters to draw.
originMetafilePointThe reference point in device units.
advancesIReadOnlyList<int>Per-character advances in device units, or an empty list.
fontMetafileFontThe font the metafile selected.
colorColorRgbThe text colour.
alignmentMetafileTextAlignmentThe alignment the reference point is measured against.
backgroundColorColorRgb?The opaque background colour, or null when transparent.
Exceptions
- ArgumentNullException
A required argument is null.