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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.