PenLineCap Enumeration
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Describes the shape at the end of a line or segment.
Namespace: System.Windows.Media
Assembly: System.Windows (in System.Windows.dll)
Syntax
'Declaration
Public Enumeration PenLineCap
public enum PenLineCap
<object property="enumMemberName"/>
Members
Member name | Description | |
---|---|---|
Flat | A cap that does not extend past the last point of the line. Comparable to no line cap. | |
Square | A rectangle that has a height equal to the line thickness and a length equal to half the line thickness. | |
Round | A semicircle that has a diameter equal to the line thickness. | |
Triangle | An isosceles right triangle whose base length is equal to the thickness of the line. |
Remarks
The following illustration shows the available cap styles for lines or segments. The red portion of the line shows the extra area added by the line cap setting.
Version Information
Silverlight
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.