Struct Word
Represents a word as a Fragment combined with a string of text.
[Serializable]
public struct Word : IEquatable<Word>
- Implements
- Inherited Members
- Extension Methods
Fields
LineBreak
Provides a word with the text \r\n that is used to add a line break in a tool tip.
public static readonly Word LineBreak
Field Value
Properties
Fragment
The fragment containing styling information associated with the word.
public Fragment Fragment { readonly get; set; }
Property Value
Text
The text of the word.
public string Text { readonly get; set; }
Property Value
Methods
Equals(Word)
Compares two instances of Word.
public readonly bool Equals(Word other)
Parameters
otherWordThe word to compare.
Returns
- bool
Wheter the words are equal.
Equals(object)
Compares the current instance of Word with any object.
public override readonly bool Equals(object obj)
Parameters
objobjectThe object to compare to.
Returns
- bool
Wheter the objects are equal.
GetHashCode()
Returns the hash code for this instance.
public override readonly int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Operators
operator ==(Word, Word)
Compares two instances of Word.
public static bool operator ==(Word left, Word right)
Parameters
Returns
- bool
Wheter the words are equal.
operator !=(Word, Word)
Compares two instances of Word.
public static bool operator !=(Word left, Word right)
Parameters
Returns
- bool
Wheter the words are not equal.