CustomLineCap::SetStrokeCaps Method (LineCap, LineCap)

 

Sets the caps used to start and end lines that make up this custom cap.

Namespace:   System.Drawing.Drawing2D
Assembly:  System.Drawing (in System.Drawing.dll)

public:
void SetStrokeCaps(
	LineCap startCap,
	LineCap endCap
)

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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: