Class PenPropMM
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
doubleThe width of the pen in millimeters. The width zero means
hairline
.color
ColorThe color of the pen.
patternOnOffMM
double[]The pattern values for the pen (on/off) in millimeters.
Remarks
On-Off-Pattern:
Parameter patternOnOff | Description | Example |
---|---|---|
- (no parameter) | line without dashes | new PenProp(0.5, Color.Blue) |
one number | x units on, x units off | new 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
doubleThe 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 patternOnOff | Description | Example |
---|---|---|
- (no parameter) | line without dashes | new PenProp(0.5, Color.Blue) |
one number | x units on, x units off | new 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) |