Class Stroke
Represents a collection of points that correspond to a stylus-down, move, and stylus-up sequence.
Inherited Members
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
Constructors
| Improve this Doc View SourceStroke()
Initializes a new instance of the Stroke class.
Declaration
public Stroke()
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 |
|
System.ArgumentNullException |
|
Properties
| Improve this Doc View SourceDrawingAttributes
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. |
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. |