Represents a immutable piece text with highlighting information.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public class RichText
Public Class RichText
public ref class RichText
Members
All Members | Constructors | Methods | Properties | Fields | |
Icon | Member | Description |
---|---|---|
RichText(String, RichTextModel) |
Creates a RichText instance with the given text and RichTextModel.
| |
Addition(RichText, RichText) |
Concatenates the specified rich texts.
| |
Concat(array<RichText>[]()[][]) |
Concatenates the specified rich texts.
| |
CreateRuns()()()() |
Creates WPF Run instances that can be used for TextBlock.Inlines.
| |
Empty |
The empty string without any formatting information.
| |
Equals(Object) | (Inherited from Object.) | |
Finalize()()()() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetHighlightedSections(Int32, Int32) |
Retrieves the highlighted sections in the specified range.
The highlighted sections will be sorted by offset, and there will not be any nested or overlapping sections.
| |
GetHighlightingAt(Int32) |
Gets the HighlightingColor for the specified offset.
| |
GetType()()()() | Gets the Type of the current instance. (Inherited from Object.) | |
ImplicitWideningImplicitImplicitImplicit(String to RichText) |
Implicit conversion from string to RichText.
| |
Length |
Gets the text length.
| |
MemberwiseClone()()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Substring(Int32, Int32) |
Creates a substring of this rich text.
| |
Text |
Gets the text.
| |
ToHtml(HtmlOptions) |
Produces HTML code for the line, with <span style="..."> tags.
| |
ToHtml(Int32, Int32, HtmlOptions) |
Produces HTML code for a section of the line, with <span style="..."> tags.
| |
ToRichTextModel()()()() |
Creates a new RichTextModel with the formatting from this RichText.
| |
ToString()()()() |
Gets the text.
(Overrides Object.ToString()()()().) |
Inheritance Hierarchy
Object | |
RichText |
Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238