An NDoc Documented Class Library

Stroke Members

Stroke overview

Public Instance Constructors

Stroke Overloaded. Initializes a new instance of the Stroke class.

Public Instance Fields

XmlAttrs The XML attributes of the Stroke

Public Instance Properties

Points Get the Points of this Stroke
Substrokes Returns the sorted Substroke array of the Stroke

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.

Private Instance Fields

substrokes What substrokes compose this Stroke

See Also

Stroke Class | Sketch Namespace