Class FontPropMM
Defines the properties of a font, where the font size is in millimeters.
public class FontPropMM : FontProp
- Inheritance
-
FontPropMM
- Inherited Members
Examples
StandardFontDef fontDef = new StandardFontDef(StandardFont.Helvetica);
FontProp font = new FontPropMM(fontDef, 8, Color.Blue, FontPropOptions.Underline);
Constructors
FontPropMM(FontDef, double, Color, FontPropOptions)
Initializes a new instance of the FontPropMM class with the specified font definition, size, color and options.
public FontPropMM(FontDef fontDef, double sizeMM, Color color, FontPropOptions options = FontPropOptions.None)
Parameters
fontDef
FontDefThe font definition.
sizeMM
doubleThe font size in millimeters.
color
ColorThe font color.
options
FontPropOptionsThe font options.
Exceptions
- ArgumentNullException
The font definition is null.
- ArgumentOutOfRangeException
The size of the font must be greater than 0.
FontPropMM(FontDef, double, FontPropOptions)
Initializes a new instance of the FontPropMM class with the specified font definition, size and options.
public FontPropMM(FontDef fontDef, double sizeMM, FontPropOptions options = FontPropOptions.None)
Parameters
fontDef
FontDefThe font definition.
sizeMM
doubleThe font size in millimeters.
options
FontPropOptionsThe font options.
Exceptions
- ArgumentNullException
The font definition is null.
- ArgumentOutOfRangeException
The size of the font must be greater than 0.
FontPropMM(FontProp, double)
Initializes a new instance of the FontPropMM class based on the properties of the specified source font and size.
public FontPropMM(FontProp sourceFontProp, double sizeMM)
Parameters
Exceptions
- ArgumentNullException
The source font is null.
- ArgumentOutOfRangeException
The size of the font must be greater than 0.