Table of Contents

Constructor MetafileTextCommand

Namespace
DocWright.Core.Metafiles
Assembly
DocWright.Core.dll

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

text string

The characters to draw.

origin MetafilePoint

The reference point in device units.

advances IReadOnlyList<int>

Per-character advances in device units, or an empty list.

font MetafileFont

The font the metafile selected.

color ColorRgb

The text colour.

alignment MetafileTextAlignment

The alignment the reference point is measured against.

backgroundColor ColorRgb?

The opaque background colour, or null when transparent.

Exceptions

ArgumentNullException

A required argument is null.