Class Stroke
Represents coordinate of stroke.
It consist of Dot's Collection.
Implements
Inherited Members
Namespace: Neosmartpen.Net
Assembly: Neosmartpen.Net.dll
Syntax
public class Stroke : List<Dot>, IList<Dot>, ICollection<Dot>, IList, ICollection, IReadOnlyList<Dot>, IReadOnlyCollection<Dot>, IEnumerable<Dot>, IEnumerable
Constructors
| Edit this page View SourceStroke(int, int, int, int)
A constructor that constructs a Stroke object
Declaration
public Stroke(int section, int owner, int note, int page)
Parameters
Type | Name | Description |
---|---|---|
int | section | The Section Id of the NCode paper |
int | owner | The Owner Id of the NCode paper |
int | note | The Note Id of the NCode paper |
int | page | The Page Number of the NCode paper |
Properties
| Edit this page View SourceColor
Gets the color of the stroke
Declaration
public int Color { get; }
Property Value
Type | Description |
---|---|
int |
Note
Gets the Note Id of the NCode paper
Declaration
public int Note { get; }
Property Value
Type | Description |
---|---|
int |
Owner
Gets the Owner Id of the NCode paper
Declaration
public int Owner { get; }
Property Value
Type | Description |
---|---|
int |
Page
Gets the Page Number of the NCode paper
Declaration
public int Page { get; }
Property Value
Type | Description |
---|---|
int |
Section
Gets the Section Id of the NCode paper
Declaration
public int Section { get; }
Property Value
Type | Description |
---|---|
int |
TimeEnd
Gets the timestamp of end point
Declaration
public long TimeEnd { get; }
Property Value
Type | Description |
---|---|
long |
TimeStart
Gets the timestamp of start point
Declaration
public long TimeStart { get; }
Property Value
Type | Description |
---|---|
long |
Methods
| Edit this page View SourceAdd(Dot)
Adds a new Dot to the current Stroke object.
Declaration
public void Add(Dot dot)
Parameters
Type | Name | Description |
---|---|---|
Dot | dot | Dot object |
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string that represents the current object. |