Takes a series of highlighting commands and stores them.
Later, it can build inline objects (for use with WPF TextBlock) from the commands.
| C# | Visual Basic | Visual C++ |
[ObsoleteAttribute("Use RichText / RichTextModel instead")] public sealed class HighlightedInlineBuilder
<ObsoleteAttribute("Use RichText / RichTextModel instead")> _ Public NotInheritable Class HighlightedInlineBuilder
[ObsoleteAttribute(L"Use RichText / RichTextModel instead")] public ref class HighlightedInlineBuilder sealed
| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description |
|---|---|---|
| HighlightedInlineBuilder(String) |
Creates a new HighlightedInlineBuilder instance.
| |
| HighlightedInlineBuilder(RichText) |
Creates a new HighlightedInlineBuilder instance.
| |
| Clone()()()() |
Clones this HighlightedInlineBuilder.
| |
| CreateRuns()()()() |
Creates WPF Run instances that can be used for TextBlock.Inlines.
| |
| Equals(Object) | (Inherited from Object.) | |
| GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType()()()() | Gets the Type of the current instance. (Inherited from Object.) | |
| SetBackground(Int32, Int32, Brush) |
Sets the background brush on the specified text segment.
| |
| SetFontStyle(Int32, Int32, FontStyle) |
Sets the font style on the specified text segment.
| |
| SetFontWeight(Int32, Int32, FontWeight) |
Sets the font weight on the specified text segment.
| |
| SetForeground(Int32, Int32, Brush) |
Sets the foreground brush on the specified text segment.
| |
| SetHighlighting(Int32, Int32, HighlightingColor) |
Applies the properties from the HighlightingColor to the specified text segment.
| |
| Text |
Gets the text.
| |
| ToRichText()()()() |
Creates a RichText instance.
| |
| ToString()()()() | (Inherited from Object.) |
This class is not used in AvalonEdit - but it is useful for someone who wants to put a HighlightedLine
into a TextBlock.
In SharpDevelop, we use it to provide syntax highlighting inside the search results pad.
| Object | |
| HighlightedInlineBuilder | |
Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238