PolyBezierSegment class
Represents one or more cubic Bezier curves.
Inheritance
- Object
- DependencyObject
- PathSegment
- PolyBezierSegment
Syntax
<PolyBezierSegment .../>
Attributes
- ActivatableAttribute(NTDDI_WIN8)
- ContentPropertyAttribute(Name=Points)
- MarshalingBehaviorAttribute(Agile)
- StaticAttribute(Windows.UI.Xaml.Media.IPolyBezierSegmentStatics, NTDDI_WIN8)
- ThreadingAttribute(Both)
- VersionAttribute(NTDDI_WIN8)
- WebHostHiddenAttribute()
Members
The PolyBezierSegment class has these types of members:
Constructors
The PolyBezierSegment class has these constructors.
| Constructor | Description |
|---|---|
| PolyBezierSegment | Initializes a new instance of the PolyBezierSegment class. |
Methods
The PolyBezierSegment class has these methods. It also inherits methods from the Object class.
| Method | Description |
|---|---|
| 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.
| Property | Access type | Description |
|---|---|---|
| Read-only | Gets the CoreDispatcher that this object is associated with. (Inherited from DependencyObject) | |
| Read/write | Gets or sets the Point collection that defines this PolyBezierSegment object. | |
| Read-only | Identifies 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] |
|
Namespace |
|
|
Metadata |
|
See also
Build date: 12/4/2012
