Table of Contents

Struct Word

Namespace
Dassie.Text.Tooltips
Assembly
dstx.dll

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

Word

Properties

Fragment

The fragment containing styling information associated with the word.

public Fragment Fragment { readonly get; set; }

Property Value

Fragment

Text

The text of the word.

public string Text { readonly get; set; }

Property Value

string

Methods

Equals(Word)

Compares two instances of Word.

public readonly bool Equals(Word other)

Parameters

other Word

The 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

obj object

The 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

left Word

The first instance.

right Word

The second instance.

Returns

bool

Wheter the words are equal.

operator !=(Word, Word)

Compares two instances of Word.

public static bool operator !=(Word left, Word right)

Parameters

left Word

The first instance.

right Word

The second instance.

Returns

bool

Wheter the words are not equal.