Show / Hide Table of Contents

Class Stroke

Represents a collection of points that correspond to a stylus-down, move, and stylus-up sequence.

Inheritance
System.Object
DependencyObject
Stroke
Inherited Members
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.INTERNAL_OnAttachedToVisualTree()
DependencyObject.INTERNAL_OnDetachedFromVisualTree()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Ink
Assembly: OpenSilver.dll
Syntax
public sealed class Stroke : DependencyObject, IDependencyObject

Constructors

| Improve this Doc View Source

Stroke()

Initializes a new instance of the Stroke class.

Declaration
public Stroke()
| Improve this Doc View Source

Stroke(StylusPointCollection)

Initializes a new instance of the Stroke class with the specified StylusPointCollection.

Declaration
public Stroke(StylusPointCollection stylusPoints)
Parameters
Type Name Description
StylusPointCollection stylusPoints

A StylusPointCollection that represents the Stroke.

Exceptions
Type Condition
System.ArgumentException

stylusPoints does not contain any stylus points.

System.ArgumentNullException

stylusPoints is null.

Properties

| Improve this Doc View Source

DrawingAttributes

Gets or sets the properties of the stroke, such as Height, Width, Color, or OutlineColor.

Declaration
public DrawingAttributes DrawingAttributes { get; set; }
Property Value
Type Description
DrawingAttributes

The DrawingAttributes of the stroke.

| Improve this Doc View Source

StylusPoints

Gets or sets the stylus points of the Stroke.

Declaration
public StylusPointCollection StylusPoints { get; set; }
Property Value
Type Description
StylusPointCollection

The StylusPointCollection that contains the stylus points that represent the current Stroke.

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
  • Improve this Doc
  • View Source