Click or drag to resize

Pen Class

Represents a type which describes how a shape is outlined.
Inheritance Hierarchy
SystemObject
  SautinSoft.Excel.DrawingPen

Namespace: SautinSoft.Excel.Drawing
Assembly: SautinSoft.Excel (in SautinSoft.Excel.dll) Version: 2026.7.1
Syntax
public sealed class Pen

The Pen type exposes the following members.

Properties
 NameDescription
Public propertyCapStyle Gets or sets the cap style for the end of a stroke.
Public propertyDashStyle Gets or sets the dot and dash pattern for a stroke.
Public propertyFill Gets the fill of the outline.
Public propertyHeadEnd Gets or sets the decoration which will be added to the head of a line.
Public propertyHeadEndLength Gets or sets the line head-end length in relation to the line width.
Public propertyHeadEndWidth Gets or sets the line head-end width in relation to the line width.
Public propertyJoinStyle Gets or sets the join style of a polyline.
Public propertyTailEnd Gets or sets the decoration which will be added to the tail of a line.
Public propertyTailEndLength Gets or sets the line tail-end length in relation to the line width.
Public propertyTailEndWidth Gets or sets the line tail-end width in relation to the line width.
Public propertyWidth Gets or sets the thickness of the stroke.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also