NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Pen Class

Defines an object used to draw lines and curves.

Object
   MarshalByRefObject
      Pen

[Visual Basic]
NotInheritable Public Class Pen
   Inherits MarshalByRefObject
   Implements ISystemColorTracker, ICloneable
[C#]
public sealed class Pen : MarshalByRefObject, ISystemColorTracker,
   ICloneable
[C++]
public __gc __sealed class Pen : public MarshalByRefObject,
   ISystemColorTracker, ICloneable
[JScript]
public class Pen extends MarshalByRefObject, ISystemColorTracker,
   ICloneable

Remarks

A Pen draws a line of specified width and style. Use the DashStyle property to draw several varieties of dashed lines. The line drawn by a Pen can be filled in a variety of fill styles including solid colors and textures. The fill style depends on brush or texture that is used as the fill object.

Requirements

Namespace: System.Drawing

Assembly: System.Drawing.dll

See Also

Pen Members | System.Drawing Namespace