Pen.MiterLimit 속성

정의

이 펜 Thickness의 절반에 대한 마이터 길이의 비율 제한을 가져오거나 설정합니다.

public:
 property double MiterLimit { double get(); void set(double value); };
public double MiterLimit { get; set; }
member this.MiterLimit : double with get, set
Public Property MiterLimit As Double

속성 값

Double

Thickness의 절반에 대한 마이터 길이의 비율 제한입니다. 이 값은 항상 1 보다 크거나 같은 양수입니다. 기본값은 10.0입니다.

예제

다음 예제에서는 사용 하는 방법의 MiterLimit 두 개의 선 세그먼트가 만든 모퉁이의 크기를 제한 하는 속성입니다.

<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>
                <PathGeometry>
                  <PathGeometry.Figures>
                    <PathFigureCollection>
                      <PathFigure StartPoint="100,50">
                        <PathFigure.Segments>
                          <PathSegmentCollection>
                            <LineSegment Point="200,70" />
                            <LineSegment Point="100,60" />
                          </PathSegmentCollection>
                        </PathFigure.Segments>
                      </PathFigure>
                    </PathFigureCollection>
                  </PathGeometry.Figures>
                </PathGeometry>
              </GeometryDrawing.Geometry>
              <GeometryDrawing.Pen>

                <!-- The MiterLimit is set to a value of 0 so the corner formed
                     by where the two line segments join is cut or blunted. A larger 
                     value would allow for the corner to extend out even beyond 
                     the thickness of the line. -->
                <Pen Brush="Blue" Thickness="4" MiterLimit="0"  />
              </GeometryDrawing.Pen>
            </GeometryDrawing>
          </DrawingBrush.Drawing>
        </DrawingBrush>
      </Canvas.Background>
    </Canvas>

  </StackPanel>

</Page>

다음 그림에서는이 코드 예제에서 생성 하는 내용을 보여 줍니다.

MiterLimit 예제를 표시합니다. 모서리가 잘림입니다.

설명

마이터는 모서리를 조인할 두 표면의 각 빗면 수행한 조인트는 합니다. 두 선분이 예 각 만나고, 마이터 경로 스트로크를 그리는 선의 두께 보다 크게 확장할 수 있습니다.

종속성 속성 정보

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

적용 대상

추가 정보