Table of Contents

Struct TextBlock.SimpleTextSource

Namespace
Avalonia.Controls
Assembly
Avalonia.Controls.dll
protected readonly struct TextBlock.SimpleTextSource : ITextSource, IEquatable<TextBlock.SimpleTextSource>
Implements
Inherited Members

Constructors

SimpleTextSource(string, TextRunProperties)

public SimpleTextSource(string text, TextRunProperties defaultProperties)

Parameters

text string
defaultProperties TextRunProperties

Methods

Equals(SimpleTextSource)

public bool Equals(TextBlock.SimpleTextSource other)

Parameters

other TextBlock.SimpleTextSource

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

GetTextRun(int)

Gets a TextRun for specified text source index.

public TextRun? GetTextRun(int textSourceIndex)

Parameters

textSourceIndex int

The text source index.

Returns

TextRun

The text run.

ToString()

public override string ToString()

Returns

string

Operators

operator ==(SimpleTextSource, SimpleTextSource)

public static bool operator ==(TextBlock.SimpleTextSource left, TextBlock.SimpleTextSource right)

Parameters

left TextBlock.SimpleTextSource
right TextBlock.SimpleTextSource

Returns

bool

operator !=(SimpleTextSource, SimpleTextSource)

public static bool operator !=(TextBlock.SimpleTextSource left, TextBlock.SimpleTextSource right)

Parameters

left TextBlock.SimpleTextSource
right TextBlock.SimpleTextSource

Returns

bool