[]
        
(Showing Draft Content)

GrapeCity.Drawing.Pen

Pen Class

Defines an object used to draw lines and curves.

Inheritance
Pen
Implements
Namespace: GrapeCity.Drawing
Assembly: GrapeCity.Spreadsheet.dll
Syntax
public sealed class Pen : IEquatable<Pen>
Public NotInheritable Class Pen
    Implements IEquatable(Of Pen)

Constructors

Name Description
Pen(SchemeColor, double)

Initializes a new instance of the Pen class with the specified color and width.

Pen(Brush, double)

Initializes a new instance of the Pen class with the specified brush and width.

Fields

Name Description
GroupPen

Represents the group pen.

NoPen

Represents there is no pen.

Properties

Name Description
Alignment

Gets the alignment for this Pen.

Brush

Gets the Brush that determines attributes of this Pen.

DashPattern

Gets an array of custom dashes and spaces.

DashStyle

Gets the style used for dashed lines drawn with this Pen.

LineCap

Gets the line cap style used at the end of lines drawn with this Pen.

LineEndHead

Gets a custom cap to use at the beginning of lines drawn with this Pen.

LineEndTail

Gets a custom cap to use at the end of lines drawn with this Pen.

LineJoin

Gets the join style for the ends of two consecutive lines drawn with this Pen.

MiterLimit

Gets the limit of the thickness of the join on a mitered corner.

Style

Gets a LineStyle value that specifies a compound pen. A compound pen draws a compound line made up of parallel lines and spaces.

Visible

Returns or sets an Boolean value that determines whether the object is visible. Read/write.

Width

Gets or sets the width of this Pen in pixels.

Methods

Name Description
Equals(Pen)
IsSet(Attributes)

Gets a value indicating whether the specified attribute(s) is set.