Pen Class
Represents a type which describes how a shape is outlined.
- Inheritance:
- System.ObjectPen
Properties
CompoundType
Gets or sets the compound line type.
public PenCompoundType CompoundType { get; set; }
Public Property CompoundType As PenCompoundType
Property Value
The compound line type.
Remarks
CompoundType is currently not supported when exporting a document to PDF, XPS, or image formats.
DashType
Gets or sets the dash type.
Property Value
The dash type.
Fill
Gets the fill of the outline produced by this Pen.
Property Value
JoinType
Gets or sets the line join type that indicates how connected lines are joined.
Default value is Round.
Property Value
The line join type that indicates how connected lines are joined.
Width
Gets or sets the thickness of the stroke produced by this Pen.
Property Value
- System.Double
The thickness of the stroke produced by this Pen.
Exceptions
- System.ArgumentOutOfRangeException
Value cannot be negative.
Methods
ToString()
Returns a System.String that represents this Pen instance.
Returns
- System.String
A System.String that represents this Pen instance.
Overrides
Remarks
This method should be used primarily for debugging purposes and should be considered volatile (format of its return value might change in future versions).