StyledText.AddText Method
Assembly: Topten.RichTextKit.dll
Namespace: Topten.RichTextKit
Declaring Type: StyledText
Overloads
AddText(StyledText) | Add all the text from another text block to this text block |
AddText(ReadOnlySpan<char>, IStyle) | Add text to this text block |
AddText(Utils.Slice<int>, IStyle) | Add text to this paragraph |
AddText(string, IStyle) | Add text to this text block |
AddText(StyledText)
Add all the text from another text block to this text block
public void AddText(StyledText text);
Parameters
StyledText text | Text to add |
AddText(ReadOnlySpan<char>, IStyle)
Add text to this text block
public void AddText(ReadOnlySpan<char> text, IStyle style);
Remarks
The added text will be internally coverted to UTF32.
Note that all text indicies returned by and accepted by this object will be UTF32 "code point indicies". To convert between UTF16 character indicies and UTF32 code point indicies use the CodePointToCharacterIndex(int) and CharacterToCodePointIndex(int) methods
Parameters
ReadOnlySpan<char> text | The text to add |
IStyle style | The style of the text |
AddText(Utils.Slice<int>, IStyle)
Add text to this paragraph
public void AddText(Utils.Slice<int> text, IStyle style);
Parameters
Utils.Slice<int> text | The text to add |
IStyle style | The style of the text |
AddText(string, IStyle)
Add text to this text block
public void AddText(string text, IStyle style);
Remarks
The added text will be internally coverted to UTF32.
Note that all text indicies returned by and accepted by this object will be UTF32 "code point indicies". To convert between UTF16 character indicies and UTF32 code point indicies use the CodePointToCharacterIndex(int) and CharacterToCodePointIndex(int) methods
Parameters
string text | The text to add |
IStyle style | The style of the text |