TextStudioWritingStroke
public struct TextStudioWritingStrokeAn authored pen-down path. Separate rows represent explicit pen lifts.
Constructors
Section titled “Constructors”
TextStudioWritingStroke(TextStudioStackItemId, TextStudioWritingStrokeRole, TextStudioWritingKnot[], bool)
Section titled “TextStudioWritingStroke(TextStudioStackItemId, TextStudioWritingStrokeRole, TextStudioWritingKnot[], bool)”public TextStudioWritingStroke(TextStudioStackItemId strokeId, TextStudioWritingStrokeRole role, TextStudioWritingKnot[] knots, bool closed = false)Creates a pen-down stroke with a role, closure flag, and its own copy of the knot array.
Parameters
| Name | Type |
|---|---|
strokeId |
TextStudio.TextStudioStackItemId |
role |
TextStudio.TextStudioWritingStrokeRole |
knots |
TextStudio.TextStudioWritingKnot[] |
closed |
System.Boolean |
Methods
Section titled “Methods”
GetKnot(int)
Section titled “GetKnot(int)”public TextStudioWritingKnot GetKnot(int index)Returns the cubic knot at the specified index, including its pressure, time, and absolute control points.
Parameters
| Name | Type |
|---|---|
index |
System.Int32 |
Returns
TextStudio.TextStudioWritingKnot
Properties
Section titled “Properties”
StrokeId
Section titled “StrokeId”public TextStudioStackItemId StrokeId { get; }Returns
TextStudio.TextStudioStackItemId
public TextStudioWritingStrokeRole Role { get; }Returns
TextStudio.TextStudioWritingStrokeRole
Closed
Section titled “Closed”public bool Closed { get; }Returns
System.Boolean
KnotCount
Section titled “KnotCount”public int KnotCount { get; }Returns
System.Int32