Pen.EndLineCap 속성

정의

스트로크의 끝에 사용할 도형 형식을 가져오거나 설정합니다.

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

속성 값

PenLineCap

스트로크의 끝에 사용할 도형의 형식입니다. 기본값은 Flat입니다.

예제

다음 예제에서는 사용 하는 방법을 보여 줍니다 합니다 StartLineCapEndLineCap 스트로크 및 스트로크의 다른 쪽에 삼각형 끝의 한쪽 끝이 둥된 만들 속성입니다.

<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>

설명

종속성 속성 정보

식별자 필드 EndLineCapProperty
메타 데이터 속성 설정 true 없음

적용 대상

추가 정보