共用方式為


PolyBezierSegment.Points 屬性

定義

取得或設定 Point 集合,這個集合會定義這個 PolyBezierSegment 物件。

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

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

屬性值

定義這個 PolyBezierSegment 物件的點集合。

範例

此範例示範如何使用 PolyBezierSegment 來建立一系列曲線。

<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 PolyBezierSegment specifies two cubic Bezier curves.
                                    The first curve is from 10,100 (start point specified above)
                                    to 300,100 with a control point of 0,0 and another control
                                    point of 200,0. The second curve is from 300,100 
                                    (end of the last curve) to 600,100 with a control point of 300,0
                                    and another control point of 400,0. -->
                                    <PolyBezierSegment Points="0,0 200,0 300,100 300,0 400,0 600,100" />
                                </PathSegmentCollection>
                            </PathFigure.Segments>
                        </PathFigure>
                    </PathFigureCollection>
                </PathGeometry.Figures>
            </PathGeometry>
        </Path.Data>
    </Path>
</Canvas>

適用於