Struct TextBlock.SimpleTextSource
protected readonly struct TextBlock.SimpleTextSource : ITextSource, IEquatable<TextBlock.SimpleTextSource>
- Implements
- Inherited Members
Constructors
SimpleTextSource(string, TextRunProperties)
public SimpleTextSource(string text, TextRunProperties defaultProperties)
Parameters
text
stringdefaultProperties
TextRunProperties
Methods
Equals(SimpleTextSource)
public bool Equals(TextBlock.SimpleTextSource other)
Parameters
other
TextBlock.SimpleTextSource
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
GetTextRun(int)
Gets a TextRun for specified text source index.
public TextRun? GetTextRun(int textSourceIndex)
Parameters
textSourceIndex
intThe text source index.
Returns
- TextRun
The text run.
ToString()
public override string ToString()
Returns
Operators
operator ==(SimpleTextSource, SimpleTextSource)
public static bool operator ==(TextBlock.SimpleTextSource left, TextBlock.SimpleTextSource right)
Parameters
left
TextBlock.SimpleTextSourceright
TextBlock.SimpleTextSource
Returns
operator !=(SimpleTextSource, SimpleTextSource)
public static bool operator !=(TextBlock.SimpleTextSource left, TextBlock.SimpleTextSource right)
Parameters
left
TextBlock.SimpleTextSourceright
TextBlock.SimpleTextSource