Polyline Polyline Polyline Polyline Class
Definition
Draws a series of connected straight lines.
public : sealed class Polyline : Shape, IPolylinepublic sealed class Polyline : Shape, IPolylinePublic NotInheritable Class Polyline Inherits Shape Implements IPolyline// This API is not available in Javascript.
<Polyline .../>
- Inheritance
- Attributes
Windows 10 requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Inherited Members
Inherited properties
AccessKeyScopeOwnerPropertyAccessKeyScopeOwnerPropertyAccessKeyScopeOwnerPropertyAccessKeyScopeOwnerProperty
AllowFocusOnInteractionPropertyAllowFocusOnInteractionPropertyAllowFocusOnInteractionPropertyAllowFocusOnInteractionProperty
AllowFocusWhenDisabledPropertyAllowFocusWhenDisabledPropertyAllowFocusWhenDisabledPropertyAllowFocusWhenDisabledProperty
ExitDisplayModeOnAccessKeyInvokedExitDisplayModeOnAccessKeyInvokedExitDisplayModeOnAccessKeyInvokedExitDisplayModeOnAccessKeyInvoked
ExitDisplayModeOnAccessKeyInvokedPropertyExitDisplayModeOnAccessKeyInvokedPropertyExitDisplayModeOnAccessKeyInvokedPropertyExitDisplayModeOnAccessKeyInvokedProperty
FocusVisualMarginPropertyFocusVisualMarginPropertyFocusVisualMarginPropertyFocusVisualMarginProperty
FocusVisualPrimaryBrushPropertyFocusVisualPrimaryBrushPropertyFocusVisualPrimaryBrushPropertyFocusVisualPrimaryBrushProperty
FocusVisualPrimaryThicknessFocusVisualPrimaryThicknessFocusVisualPrimaryThicknessFocusVisualPrimaryThickness
FocusVisualPrimaryThicknessPropertyFocusVisualPrimaryThicknessPropertyFocusVisualPrimaryThicknessPropertyFocusVisualPrimaryThicknessProperty
FocusVisualSecondaryBrushFocusVisualSecondaryBrushFocusVisualSecondaryBrushFocusVisualSecondaryBrush
FocusVisualSecondaryBrushPropertyFocusVisualSecondaryBrushPropertyFocusVisualSecondaryBrushPropertyFocusVisualSecondaryBrushProperty
FocusVisualSecondaryThicknessFocusVisualSecondaryThicknessFocusVisualSecondaryThicknessFocusVisualSecondaryThickness
FocusVisualSecondaryThicknessPropertyFocusVisualSecondaryThicknessPropertyFocusVisualSecondaryThicknessPropertyFocusVisualSecondaryThicknessProperty
HighContrastAdjustmentPropertyHighContrastAdjustmentPropertyHighContrastAdjustmentPropertyHighContrastAdjustmentProperty
HorizontalAlignmentPropertyHorizontalAlignmentPropertyHorizontalAlignmentPropertyHorizontalAlignmentProperty
IsDoubleTapEnabledPropertyIsDoubleTapEnabledPropertyIsDoubleTapEnabledPropertyIsDoubleTapEnabledProperty
IsRightTapEnabledPropertyIsRightTapEnabledPropertyIsRightTapEnabledPropertyIsRightTapEnabledProperty
KeyTipHorizontalOffsetPropertyKeyTipHorizontalOffsetPropertyKeyTipHorizontalOffsetPropertyKeyTipHorizontalOffsetProperty
KeyTipPlacementModePropertyKeyTipPlacementModePropertyKeyTipPlacementModePropertyKeyTipPlacementModeProperty
KeyTipVerticalOffsetPropertyKeyTipVerticalOffsetPropertyKeyTipVerticalOffsetPropertyKeyTipVerticalOffsetProperty
ManipulationCompletedEventManipulationCompletedEventManipulationCompletedEventManipulationCompletedEvent
ManipulationInertiaStartingEventManipulationInertiaStartingEventManipulationInertiaStartingEventManipulationInertiaStartingEvent
ManipulationStartingEventManipulationStartingEventManipulationStartingEventManipulationStartingEvent
NoFocusCandidateFoundEventNoFocusCandidateFoundEventNoFocusCandidateFoundEventNoFocusCandidateFoundEvent
RenderTransformOriginPropertyRenderTransformOriginPropertyRenderTransformOriginPropertyRenderTransformOriginProperty
StrokeStartLineCapPropertyStrokeStartLineCapPropertyStrokeStartLineCapPropertyStrokeStartLineCapProperty
TabFocusNavigationPropertyTabFocusNavigationPropertyTabFocusNavigationPropertyTabFocusNavigationProperty
UseLayoutRoundingPropertyUseLayoutRoundingPropertyUseLayoutRoundingPropertyUseLayoutRoundingProperty
VerticalAlignmentPropertyVerticalAlignmentPropertyVerticalAlignmentPropertyVerticalAlignmentProperty
XYFocusDownNavigationStrategyXYFocusDownNavigationStrategyXYFocusDownNavigationStrategyXYFocusDownNavigationStrategy
XYFocusDownNavigationStrategyPropertyXYFocusDownNavigationStrategyPropertyXYFocusDownNavigationStrategyPropertyXYFocusDownNavigationStrategyProperty
XYFocusKeyboardNavigationXYFocusKeyboardNavigationXYFocusKeyboardNavigationXYFocusKeyboardNavigation
XYFocusKeyboardNavigationPropertyXYFocusKeyboardNavigationPropertyXYFocusKeyboardNavigationPropertyXYFocusKeyboardNavigationProperty
XYFocusLeftNavigationStrategyXYFocusLeftNavigationStrategyXYFocusLeftNavigationStrategyXYFocusLeftNavigationStrategy
XYFocusLeftNavigationStrategyPropertyXYFocusLeftNavigationStrategyPropertyXYFocusLeftNavigationStrategyPropertyXYFocusLeftNavigationStrategyProperty
XYFocusRightNavigationStrategyXYFocusRightNavigationStrategyXYFocusRightNavigationStrategyXYFocusRightNavigationStrategy
XYFocusRightNavigationStrategyPropertyXYFocusRightNavigationStrategyPropertyXYFocusRightNavigationStrategyPropertyXYFocusRightNavigationStrategyProperty
Inherited events
AccessKeyDisplayDismissedAccessKeyDisplayDismissedAccessKeyDisplayDismissedAccessKeyDisplayDismissed
AccessKeyDisplayRequestedAccessKeyDisplayRequestedAccessKeyDisplayRequestedAccessKeyDisplayRequested
ManipulationInertiaStartingManipulationInertiaStartingManipulationInertiaStartingManipulationInertiaStarting
Inherited methods
AddHandler(RoutedEvent,Object,Boolean)AddHandler(RoutedEvent,Object,Boolean)AddHandler(RoutedEvent,Object,Boolean)AddHandler(RoutedEvent,Object,Boolean)
CancelDirectManipulationsCancelDirectManipulationsCancelDirectManipulationsCancelDirectManipulations
ClearValue(DependencyProperty)ClearValue(DependencyProperty)ClearValue(DependencyProperty)ClearValue(DependencyProperty)
DeferTree(DependencyObject)DeferTree(DependencyObject)DeferTree(DependencyObject)DeferTree(DependencyObject)
FindSubElementsForTouchTargeting(Point,Rect)FindSubElementsForTouchTargeting(Point,Rect)FindSubElementsForTouchTargeting(Point,Rect)FindSubElementsForTouchTargeting(Point,Rect)
GetAnimationBaseValue(DependencyProperty)GetAnimationBaseValue(DependencyProperty)GetAnimationBaseValue(DependencyProperty)GetAnimationBaseValue(DependencyProperty)
GetBindingExpression(DependencyProperty)GetBindingExpression(DependencyProperty)GetBindingExpression(DependencyProperty)GetBindingExpression(DependencyProperty)
GetChildrenInTabFocusOrderGetChildrenInTabFocusOrderGetChildrenInTabFocusOrderGetChildrenInTabFocusOrder
GetValue(DependencyProperty)GetValue(DependencyProperty)GetValue(DependencyProperty)GetValue(DependencyProperty)
GoToElementStateCore(String,Boolean)GoToElementStateCore(String,Boolean)GoToElementStateCore(String,Boolean)GoToElementStateCore(String,Boolean)
OnDisconnectVisualChildrenOnDisconnectVisualChildrenOnDisconnectVisualChildrenOnDisconnectVisualChildren
OnProcessKeyboardAccelerators(ProcessKeyboardAcceleratorEventArgs)OnProcessKeyboardAccelerators(ProcessKeyboardAcceleratorEventArgs)OnProcessKeyboardAccelerators(ProcessKeyboardAcceleratorEventArgs)OnProcessKeyboardAccelerators(ProcessKeyboardAcceleratorEventArgs)
ReadLocalValue(DependencyProperty)ReadLocalValue(DependencyProperty)ReadLocalValue(DependencyProperty)ReadLocalValue(DependencyProperty)
RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback)RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback)RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback)RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback)
ReleasePointerCapture(Pointer)ReleasePointerCapture(Pointer)ReleasePointerCapture(Pointer)ReleasePointerCapture(Pointer)
RemoveHandler(RoutedEvent,Object)RemoveHandler(RoutedEvent,Object)RemoveHandler(RoutedEvent,Object)RemoveHandler(RoutedEvent,Object)
SetBinding(DependencyProperty,BindingBase)SetBinding(DependencyProperty,BindingBase)SetBinding(DependencyProperty,BindingBase)SetBinding(DependencyProperty,BindingBase)
SetValue(DependencyProperty,Object)SetValue(DependencyProperty,Object)SetValue(DependencyProperty,Object)SetValue(DependencyProperty,Object)
StartBringIntoView(BringIntoViewOptions)StartBringIntoView(BringIntoViewOptions)StartBringIntoView(BringIntoViewOptions)StartBringIntoView(BringIntoViewOptions)
StartDragAsync(PointerPoint)StartDragAsync(PointerPoint)StartDragAsync(PointerPoint)StartDragAsync(PointerPoint)
TransformToVisual(UIElement)TransformToVisual(UIElement)TransformToVisual(UIElement)TransformToVisual(UIElement)
TryInvokeKeyboardAccelerator(ProcessKeyboardAcceleratorEventArgs)TryInvokeKeyboardAccelerator(ProcessKeyboardAcceleratorEventArgs)TryInvokeKeyboardAccelerator(ProcessKeyboardAcceleratorEventArgs)TryInvokeKeyboardAccelerator(ProcessKeyboardAcceleratorEventArgs)
TryStartDirectManipulation(Pointer)TryStartDirectManipulation(Pointer)TryStartDirectManipulation(Pointer)TryStartDirectManipulation(Pointer)
Examples
This example shows how to use a Polyline to create a closed triangle.
<Canvas>
<Polyline Points="50,25 0,100 100,100 50,25"
Stroke="Blue" StrokeThickness="10"
Canvas.Left="75" Canvas.Top="50" />
</Canvas>
Constructors
Properties
FillRule FillRule FillRule FillRule
Gets or sets a value that specifies how the interior fill of the shape is determined.
public : FillRule FillRule { get; set; }public FillRule FillRule { get; set; }Public ReadWrite Property FillRule As FillRule// This API is not available in Javascript.
<Polyline FillRule="Nonzero"/>
-or-
<Polyline FillRule="EvenOdd"/>
FillRuleProperty FillRuleProperty FillRuleProperty FillRuleProperty
Identifies the FillRule dependency property.
public : static DependencyProperty FillRuleProperty { get; }public static DependencyProperty FillRuleProperty { get; }Public Static ReadOnly Property FillRuleProperty As DependencyProperty// This API is not available in Javascript.
The identifier for the FillRule dependency property.
Points Points Points Points
Gets or sets a collection that contains the vertex points of the Polyline.
public : PointCollection Points { get; set; }public PointCollection Points { get; set; }Public ReadWrite Property Points As PointCollection// This API is not available in Javascript.
<Polyline Points="pointSet"/>
PointsProperty PointsProperty PointsProperty PointsProperty
Identifies the Points dependency property.
public : static DependencyProperty PointsProperty { get; }public static DependencyProperty PointsProperty { get; }Public Static ReadOnly Property PointsProperty As DependencyProperty// This API is not available in Javascript.
The identifier for the Points dependency property.