CustomLineCap::SetStrokeCaps Method (LineCap, LineCap)
.NET Framework (current version)
Sets the caps used to start and end lines that make up this custom cap.
Assembly: System.Drawing (in System.Drawing.dll)
Parameters
- startCap
-
Type:
System.Drawing.Drawing2D::LineCap
The LineCap enumeration used at the beginning of a line within this cap.
- endCap
-
Type:
System.Drawing.Drawing2D::LineCap
The LineCap enumeration used at the end of a line within this cap.
The following example demonstrates how to use the SetStrokeCaps method. 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.
.NET Framework
Available since 1.1
Available since 1.1
Show: