An NDoc Documented Class Library

Stroke Methods

The methods of the Stroke class are listed below. For a complete list of Stroke class members, see the Stroke Members topic.

Public Instance Methods

addSubstroke Adds the Substroke to the Stroke's Substroke ArrayList. Inserts the Substroke in ascending order.
addSubstrokesOverloaded. Adds the Substrokes to the Stroke's Substroke ArrayList
Clone Clone this Stroke.
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the current instance.
splitStrokeAtOverloaded. Splits a Stroke's Substroke into two Substrokes at the given Point GUID.
splitSubstrokeAtOverloaded. Split the substroke at the given index at the point index
splitSubstrokesAtOverloaded. Split the substrokes given by their indices at the given point split indices
strokeIndexToSubstrokeIndex Given a stroke index (from Points getter), return int[2]; int[0] is the index of the substroke; int[1] is the index of the point within the substroke
ToString (inherited from Object) Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

Stroke Class | Sketch Namespace