Class TextPosition
Inheritance
System.Object
TextPosition
Syntax
public class TextPosition : IEquatable<TextPosition>
Constructors
TextPosition(Int32, TextAffinity)
Declaration
public TextPosition(int offset, TextAffinity affinity = TextAffinity.downstream)
Parameters
Type |
Name |
Description |
System.Int32 |
offset |
|
TextAffinity |
affinity |
|
Fields
affinity
Declaration
public readonly TextAffinity affinity
Field Value
offset
Declaration
public readonly int offset
Field Value
Type |
Description |
System.Int32 |
|
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
Equals(TextPosition)
Declaration
public bool Equals(TextPosition other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
Operators
Equality(TextPosition, TextPosition)
Declaration
public static bool operator ==(TextPosition left, TextPosition right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Inequality(TextPosition, TextPosition)
Declaration
public static bool operator !=(TextPosition left, TextPosition right)
Parameters
Returns
Type |
Description |
System.Boolean |
|