CustomLineCap Class
Encapsulates a custom user-defined line cap.
Assembly: System.Drawing (in System.Drawing.dll)
System::MarshalByRefObject
System.Drawing.Drawing2D::CustomLineCap
System.Drawing.Drawing2D::AdjustableArrowCap
| 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(Type^) | 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 the default hash function. (Inherited from Object.) |
![]() | GetLifetimeService() | Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.) |
![]() | GetStrokeCaps(LineCap%, LineCap%) | Gets the caps used to start and end lines that make up this custom cap. |
![]() | GetType() | |
![]() | InitializeLifetimeService() | Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.) |
![]() | MemberwiseClone() | |
![]() | MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object.(Inherited from MarshalByRefObject.) |
![]() | SetStrokeCaps(LineCap, LineCap) | 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.
Available since 1.1
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


