Pens

Whereas the Brush classes are used to fill shapes, the Pen class is used to frame shapes. The interesting members are shown here:

 NotInheritable Class Pen Inherits MarshalByRefObject Implements ICloneable Implements IDisposable 'Constructors Public Sub New(abrush as Brush) Public Sub New(abrush As Brush, width As Single) Public Sub New(acolor As Color) Public Sub New(acolor As Color, width As Single) ' Properties Property Alignment() As PenAlignment Property Brush() As Brush Property Color() As Color Property CompoundArray() As Single() Property CustomEndCap() As CustomLineCap Property CustomStartCap() As CustomLineCap Property DashCap() As DashCap Property DashOffset() As Single Property DashPattern() As Single() Property DashStyle() As ...

Get Windows Forms Programming in Visual Basic .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.