Table of Contents

Class PenPropMM

Namespace
Root.ReportNet.Pdf
Assembly
ReportNet.dll

Defines the properties of a pen, where the dimensions are in millimeters.

public class PenPropMM : PenProp
Inheritance
PenPropMM
Inherited Members

Examples

PenPropMM redPen = new(0.5, Color.Red);
PenPropMM redDashedPen = new(0.5, Color.Red, 2, 0.5);

Constructors

PenPropMM(double, Color, params double[])

Initializes a new instance of the PenPropMM class with the specified width, color and pattern (on/off).

public PenPropMM(double widthMM, Color color, params double[] patternOnOffMM)

Parameters

widthMM double

The width of the pen in millimeters. The width zero means hairline.

color Color

The color of the pen.

patternOnOffMM double[]

The pattern values for the pen (on/off) in millimeters.

Remarks

On-Off-Pattern:

Parameter patternOnOffDescriptionExample
- (no parameter)line without dashesnew PenProp(0.5, Color.Blue)
one numberx units on, x units offnew PenProp(0.5, Color.Blue, 2)
list of numbers: a, b, c, d, ...a units on, b units off, c units on, d units off, ...new PenProp(0.5, Color.Blue, 5, 1, 2, 1)

PenPropMM(double, params double[])

Initializes a new instance of the PenPropMM class with the specified width and pattern (on/off).

public PenPropMM(double widthMM, params double[] patternOnOffMM)

Parameters

widthMM double

The width of the pen in millimeters. The width zero means hairline.

patternOnOffMM double[]

The pattern values for the pen (on/off) in millimeters.

Remarks

On-Off-Pattern:

Parameter patternOnOffDescriptionExample
- (no parameter)line without dashesnew PenProp(0.5, Color.Blue)
one numberx units on, x units offnew PenProp(0.5, Color.Blue, 2)
list of numbers: a, b, c, d, ...a units on, b units off, c units on, d units off, ...new PenProp(0.5, Color.Blue, 5, 1, 2, 1)