Pen.EndLineCap Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the type of shape to use at the end of a stroke.
public:
property System::Windows::Media::PenLineCap EndLineCap { System::Windows::Media::PenLineCap get(); void set(System::Windows::Media::PenLineCap value); };
public System.Windows.Media.PenLineCap EndLineCap { get; set; }
member this.EndLineCap : System.Windows.Media.PenLineCap with get, set
Public Property EndLineCap As PenLineCap
Property Value
The type of shape that ends the stroke. The default value is Flat.
Examples
The following example shows how to use the StartLineCap and EndLineCap properties to create a rounded end on one side of a stroke and a triangular end on the other side of the stroke.
<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<StackPanel Margin="20">
<Canvas Margin="100" Width="100" Height="100">
<Canvas.Background>
<DrawingBrush>
<DrawingBrush.Drawing>
<GeometryDrawing>
<GeometryDrawing.Geometry>
<LineGeometry StartPoint="10,10" EndPoint="50,100" />
</GeometryDrawing.Geometry>
<GeometryDrawing.Pen>
<!-- This Pen specifies a round line cap at the beginning of
the line and a triangular line cap at the end of the line. -->
<Pen Brush="Blue" Thickness="8" StartLineCap="Round"
EndLineCap="Triangle" />
</GeometryDrawing.Pen>
</GeometryDrawing>
</DrawingBrush.Drawing>
</DrawingBrush>
</Canvas.Background>
</Canvas>
</StackPanel>
</Page>
Remarks
Dependency Property Information
Identifier field | EndLineCapProperty |
Metadata properties set to true |
None |
Applies to
See also
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기