Static helper methods for working with text.

C# | Visual Basic | Visual C++ |
public static class TextUtilities
Public NotInheritable Class TextUtilities
public ref class TextUtilities abstract sealed

All Members | Methods | ||||
Icon | Member | Description |
---|---|---|
![]() ![]() | FindNextNewLine(ITextSource, Int32, String%) |
Finds the next new line character starting at offset.
|
![]() ![]() | GetCharacterClass(Char) |
Gets whether the character is whitespace, part of an identifier, or line terminator.
|
![]() ![]() | GetControlCharacterName(Char) |
Gets the name of the control character.
For unknown characters, the unicode codepoint is returned as 4-digit hexadecimal value.
|
![]() ![]() | GetLeadingWhitespace(TextDocument, DocumentLine) |
Gets the leading whitespace segment on the document line.
|
![]() ![]() | GetNewLineFromDocument(IDocument, Int32) |
Gets the newline sequence used in the document at the specified line.
|
![]() ![]() | GetNextCaretPosition(ITextSource, Int32, LogicalDirection, CaretPositioningMode) |
Gets the next caret position.
|
![]() ![]() | GetSingleIndentationSegment(ITextSource, Int32, Int32) |
Gets a single indentation segment starting at offset - at most one tab
or indentationSize spaces.
|
![]() ![]() | GetTrailingWhitespace(TextDocument, DocumentLine) |
Gets the trailing whitespace segment on the document line.
|
![]() ![]() | GetWhitespaceAfter(ITextSource, Int32) |
Gets all whitespace (' ' and '\t', but no newlines) after offset.
|
![]() ![]() | GetWhitespaceBefore(ITextSource, Int32) |
Gets all whitespace (' ' and '\t', but no newlines) before offset.
|
![]() ![]() | IsNewLine(String) |
Gets whether the specified string is a newline sequence.
|
![]() ![]() | NormalizeNewLines(String, String) |
Normalizes all new lines in input to be newLine.
|

Object | |
![]() | TextUtilities |
Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238