Table of Contents

Class FontPropMM

Namespace
Root.ReportNet.Pdf
Assembly
ReportNet.dll

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 FontDef

The font definition.

sizeMM double

The font size in millimeters.

color Color

The font color.

options FontPropOptions

The 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 FontDef

The font definition.

sizeMM double

The font size in millimeters.

options FontPropOptions

The 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

sourceFontProp FontProp

The source font.

sizeMM double

The new font size in millimeters.

Exceptions

ArgumentNullException

The source font is null.

ArgumentOutOfRangeException

The size of the font must be greater than 0.

See Also