PolyQuadraticBezierSegment class

Applies to Windows and Windows Phone

Represents a set of quadratic Bezier segments.

Inheritance

Object
  DependencyObject
    PathSegment
      PolyQuadraticBezierSegment

Syntax


public sealed class PolyQuadraticBezierSegment : PathSegment


<PolyQuadraticBezierSegment .../>

Attributes

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

Members

The PolyQuadraticBezierSegment class has these types of members:

Constructors

The PolyQuadraticBezierSegment class has these constructors.

ConstructorDescription
PolyQuadraticBezierSegment Initializes a new instance of the PolyQuadraticBezierSegment class.

 

Methods

The PolyQuadraticBezierSegment 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 PolyQuadraticBezierSegment 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 PolyQuadraticBezierSegment object.

PointsProperty

Read-onlyIdentifies the Points dependency property.

 

Examples

This example creates two curves using a PolyQuadraticBezierSegment to specify the coordinates.


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


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
QuadraticBezierSegment
Path
PathGeometry
XAML vector-based drawing sample
Quickstart: Drawing shapes

 

 

Show:
© 2014 Microsoft