UnicodeScriptRun Struct
Represents a range of a text that is written in one script.
public readonly struct UnicodeScriptRun : IEquatable<UnicodeScriptRun>- Implements
Properties
| Name | Description |
|---|---|
| Index | Gets the index of the first UTF-16 code unit of the run. |
| Length | Gets the number of UTF-16 code units of the run. |
| Script | Gets the script of the run. It is UnicodeScript.Common when no character of the run belongs to a script. |
Index
UnicodeScriptRun.csLength
UnicodeScriptRun.csScript
UnicodeScriptRun.csGets the script of the run. It is UnicodeScript.Common when no character of the run belongs to a script.
public UnicodeScript Script { get; }Property value
Methods
| Name | Description |
|---|---|
| Equals(UnicodeScriptRun) | Indicates whether the current object is equal to another object of the same type. |
| Equals(object?) | Indicates whether this instance and a specified object are equal. |
| GetHashCode() | Returns the hash code for this instance. |
Equals overloads
Equals(UnicodeScriptRun)
UnicodeScriptRun.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(UnicodeScriptRun other)Parameters
otherUnicodeScriptRun- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.
Equals(object?)
UnicodeScriptRun.csGetHashCode()
UnicodeScriptRun.csOperators
| Name | Description |
|---|---|
| operator ==(UnicodeScriptRun, UnicodeScriptRun) | Determines whether two values are equal. |
| operator !=(UnicodeScriptRun, UnicodeScriptRun) | Determines whether two values are different. |
operator ==(UnicodeScriptRun, UnicodeScriptRun)
UnicodeScriptRun.csDetermines whether two values are equal.
public static bool operator ==(UnicodeScriptRun left, UnicodeScriptRun right)Parameters
leftUnicodeScriptRun- The first value.
rightUnicodeScriptRun- The second value.
Returns
bool true when the values are equal.
operator !=(UnicodeScriptRun, UnicodeScriptRun)
UnicodeScriptRun.csDetermines whether two values are different.
public static bool operator !=(UnicodeScriptRun left, UnicodeScriptRun right)Parameters
leftUnicodeScriptRun- The first value.
rightUnicodeScriptRun- The second value.
Returns
bool true when the values are different.