다음을 통해 공유


PolyQuadraticBezierSegment.Points 속성

정의

PolyQuadraticBezierSegment 개체를 정의하는 Point 컬렉션을 가져오거나 설정합니다.

public:
 property PointCollection ^ Points { PointCollection ^ get(); void set(PointCollection ^ value); };
PointCollection Points();

void Points(PointCollection value);
public PointCollection Points { get; set; }
var pointCollection = polyQuadraticBezierSegment.points;
polyQuadraticBezierSegment.points = pointCollection;
Public Property Points As PointCollection
<PolyQuadraticBezierSegment Points="pointSet"/>

속성 값

PolyQuadraticBezierSegment 개체의 모양을 정의하는 점 컬렉션입니다. 기본값은 빈 컬렉션입니다.

예제

다음은 PolyQuadraticBezierSegment 를 사용하여 좌표를 지정하는 두 개의 곡선을 만드는 예제입니다.

<Canvas>
    <Path Stroke="Black" StrokeThickness="4">
        <Path.Data>
            <PathGeometry>
                <PathGeometry.Figures>
                    <PathFigureCollection>

                        <!-- The StartPoint specifies the starting point of the first curve. -->
                        <PathFigure StartPoint="10,100">
                            <PathFigure.Segments>
                                <PathSegmentCollection>

                                    <!-- The PolyQuadraticBezierSegment specifies two Bezier curves.
                  The first curve is from 10,100 (start point specified above)
                  to 300,100 with a control point of 200,200. The second curve
                  is from 200,200 (end of the last curve) to 30,400 with a 
                  control point of 0,200. -->
                                    <PolyQuadraticBezierSegment Points="200,200 300,100 0,200 30,400" />
                                </PathSegmentCollection>
                            </PathFigure.Segments>
                        </PathFigure>
                    </PathFigureCollection>
                </PathGeometry.Figures>
            </PathGeometry>
        </Path.Data>
    </Path>
</Canvas>

적용 대상