DOM.MeasurementUnits.FontSize
Represents a font-size measurement specialized from.
provides a convenient abstraction for working with font sizes while internally storing all values in EMUs via. In addition to standard unit-based construction, this type exposes a half-point based accessor () to align with WordprocessingML and other document formats that represent font sizes using half-points.
4 members
Constructors
FontSize
2 overloadsFontSize()Initializes a newinstance with no value set.
The resulting instance represents an unspecified font size (i.e., the internal value is not initialized).
FontSize(double size)Initializes a newinstance from a point-based font size.
The provided value is converted to EMUs usingand stored internally.
Parameters
- size
- Font size expressed in points.
Properties
Gets or sets the font size expressed in half-points.
This property is primarily intended for compatibility with document formats (such as WordprocessingML) that encode font sizes using half-point units. Avalue indicates that the font size is not explicitly set.
Methods
op_Implicit
FontSize op_Implicit(System.Double)~DOM.MeasurementUnits.FontSizeImplicitly converts a point-basedvalue to a.
This conversion provides a concise way to assign font sizes without explicitly constructing ainstance.
Parameters
- value
- Font size expressed in points.