CustomLineCap Class
Encapsulates a custom user-defined line cap.
System::MarshalByRefObject
System.Drawing.Drawing2D::CustomLineCap
System.Drawing.Drawing2D::AdjustableArrowCap
Assembly: System.Drawing (in System.Drawing.dll)
The CustomLineCap type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | CustomLineCap(GraphicsPath, GraphicsPath) | Initializes a new instance of the CustomLineCap class with the specified outline and fill. |
![]() | CustomLineCap(GraphicsPath, GraphicsPath, LineCap) | Initializes a new instance of the CustomLineCap class from the specified existing LineCap enumeration with the specified outline and fill. |
![]() | CustomLineCap(GraphicsPath, GraphicsPath, LineCap, Single) | Initializes a new instance of the CustomLineCap class from the specified existing LineCap enumeration with the specified outline, fill, and inset. |
| Name | Description | |
|---|---|---|
![]() | BaseCap | Gets or sets the LineCap enumeration on which this CustomLineCap is based. |
![]() | BaseInset | Gets or sets the distance between the cap and the line. |
![]() | StrokeJoin | Gets or sets the LineJoin enumeration that determines how lines that compose this CustomLineCap object are joined. |
![]() | WidthScale | Gets or sets the amount by which to scale this CustomLineCap Class object with respect to the width of the Pen object. |
| Name | Description | |
|---|---|---|
![]() | Clone | Creates an exact copy of this CustomLineCap. |
![]() | CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) |
![]() | Dispose() | Releases all resources used by this CustomLineCap object. |
![]() | Dispose(Boolean) | Releases the unmanaged resources used by the CustomLineCap and optionally releases the managed resources. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an CustomLineCap to attempt to free resources and perform other cleanup operations before the CustomLineCap is reclaimed by garbage collection. (Overrides Object::Finalize().) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
![]() | GetStrokeCaps | Gets the caps used to start and end lines that make up this custom cap. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
![]() | MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) |
![]() | SetStrokeCaps | Sets the caps used to start and end lines that make up this custom cap. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Line caps are used at the beginnings and ends of lines or curves drawn by GDI+ Pen objects. GDI+ supports several predefined cap styles, and also allows users to define their own cap styles. This class is used to create custom cap styles.
The following example demonstrates how to use the CustomLineCap class. To run this example paste, the code into a Windows Form. Handle the form's Paint event and call DrawCaps from the form's Paint event-handling method, passing e as PaintEventArgs.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
