Struct MetafileTextAlignment
How a MetafileTextCommand's origin relates to the text it positions.
public readonly struct MetafileTextAlignment : IEquatable<MetafileTextAlignment>
- Implements
- Inherited Members
Remarks
GDI's TA_* flags split into a horizontal and a vertical part, and both matter: the
horizontal one decides whether the origin is the run's left edge, right edge or centre, and
the vertical one decides whether it is the top of the em box or the baseline. Getting the
vertical part wrong shifts a run by a line height, which reads as a layout defect rather
than as a text defect.
Constructors
- MetafileTextAlignment(MetafileHorizontalTextAlignment, MetafileVerticalTextAlignment)
Initializes an alignment.
Properties
- Horizontal
Gets the horizontal reference.
- Vertical
Gets the vertical reference.
Methods
Operators
- operator ==(MetafileTextAlignment, MetafileTextAlignment)
Compares two alignments for equality.
- operator !=(MetafileTextAlignment, MetafileTextAlignment)
Compares two alignments for inequality.