System.Object
Eplan.EplApi.DataModel.Graphics.Pen
System.Object
Eplan.EplApi.DataModel.Graphics.Pen
// Create a Line object and place it on the page "testPage" Line line = new Line(); PointD startPoint = new PointD(10, 70); PointD endPoint = new PointD(85, 120); line.Create(testPage, startPoint, endPoint); // Get the Pen object of the Line object Pen pen = line.Pen; // Edit the line color, style and width on the Pen object pen.ColorId = 4; pen.StyleId = 6; pen.Width = 2; // Reassign the Pen object to the Line object to make the changes take effect on the Line object line.Pen = pen;
Name | Description | |
---|---|---|
Pen Constructor | Overloaded. |
Name | Description | |
---|---|---|
ColorId | Color index (0-255). Please use "-16002" for "from layer" value.
Predefined values for line color index are: 0 = black 1 = red 2 = yellow 3 = green 4 = cyan 5 = blue 6 = magenta 7 = white 252 = darkgray 253 = gray -16002 = from layer | |
LineEndType | Type of line end (0-2) | |
PatternLength | Pattern length. The pattern will be stretched, so that the whole pattern fits to the length of PatternLength. This is like in EPLAN 5. Please use "-16002" as "from layer" value. | |
StyleFactor | Line Style Factor when positive or Pattern Length when negative. Default value = 1. Please use "-16002" as "from layer" value. | |
StyleId | Line style identifier (0-6) Please use "-16002" as "from layer" value.
Predefined line type index values are: 0 = continous: ------ 1 = dash: - - - - - 2 = dot: ....... 3 = dashdot: _._._._ 4 = dashdotdot: _.._.._ 5 = dash: _ _ 6 = dashlongdot: __ _ -16002 = from layer | |
Width | Line width. Normally it is 0.13 - 2. Please use "-16002" as "from layer" value. |
Name | Description | |
---|---|---|
Dispose | Destructor for deterministic finalization of Pen object. | |
GetHashCode | Serves as the default hash function. |
Equality | .NET operator for comparing two GraphicalLayers. Comparison is made by comparing each of GraphicalLayers members instead of internal object id. |