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
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
System.Object.ToString()
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).