PolyBezierSegment class

Applies to Windows and Windows Phone

Represents one or more cubic Bezier curves.

Inheritance

Object
  DependencyObject
    PathSegment
      PolyBezierSegment

Syntax


public ref class PolyBezierSegment sealed : PathSegment


<PolyBezierSegment .../>

Attributes

[ContentProperty("Name=Points")]
[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]
[WebHostHidden()]

Members

The PolyBezierSegment class has these types of members:

Constructors

The PolyBezierSegment class has these constructors.

ConstructorDescription
PolyBezierSegment Initializes a new instance of the PolyBezierSegment class.

 

Methods

The PolyBezierSegment class has these methods. It also inherits methods from the Object class.

MethodDescription
ClearValue Clears the local value of a dependency property. (Inherited from DependencyObject)
GetAnimationBaseValue Returns any base value established for a dependency property, which would apply in cases where an animation is not active. (Inherited from DependencyObject)
GetValue Returns the current effective value of a dependency property from a DependencyObject. (Inherited from DependencyObject)
ReadLocalValue Returns the local value of a dependency property, if a local value is set. (Inherited from DependencyObject)
SetValue Sets the local value of a dependency property on a DependencyObject. (Inherited from DependencyObject)

 

Properties

The PolyBezierSegment class has these properties.

PropertyAccess typeDescription

Dispatcher

Read-onlyGets the CoreDispatcher that this object is associated with. (Inherited from DependencyObject)

Points

Read/writeGets or sets the Point collection that defines this PolyBezierSegment object.

PointsProperty

Read-onlyIdentifies the Points dependency property.

 

Examples

This example shows how to use a PolyBezierSegment to create a series of curves.


<Canvas Width="500" Height="100">
  <Path Stroke="Red" StrokeThickness="2">
    <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>


Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Media
Windows::UI::Xaml::Media [C++]

Metadata

Windows.winmd

See also

PathSegment
Path
PathGeometry
XAML vector-based drawing sample
Quickstart: Drawing shapes

 

 

Show:
© 2014 Microsoft. All rights reserved.