C# Class ICSharpCode.AvalonEdit.Utils.RichTextWriter

A text writer that supports creating spans of highlighted text.
Inheritance: TextWriter
Show file Open project: VE-2016/VE-2016

Public Methods

Method Description
BeginHyperlinkSpan ( Uri uri ) : void

Begin a span that links to the specified URI.

BeginSpan ( Color foregroundColor ) : void

Begin a colored span.

BeginSpan ( FontFamily fontFamily ) : void

Begin a span with modified font family.

BeginSpan ( FontStyle fontStyle ) : void

Begin a span with modified font style.

BeginSpan ( FontWeight fontWeight ) : void

Begin a span with modified font weight.

BeginSpan ( Highlighting.HighlightingColor highlightingColor ) : void

Begin a highlighted span.

EndSpan ( ) : void

Marks the end of the current span.

Indent ( ) : void

Increases the indentation level.

Unindent ( ) : void

Decreases the indentation level.

Write ( RichText richText ) : void

Writes the RichText instance.

Write ( RichText richText, int offset, int length ) : void

Writes the RichText instance.

Protected Methods

Method Description
BeginUnhandledSpan ( ) : void

Gets called by the RichTextWriter base class when a BeginSpan() method that is not overwritten gets called.

Method Details

BeginHyperlinkSpan() public method

Begin a span that links to the specified URI.
public BeginHyperlinkSpan ( Uri uri ) : void
uri Uri
return void

BeginSpan() public method

Begin a colored span.
public BeginSpan ( Color foregroundColor ) : void
foregroundColor Color
return void

BeginSpan() public method

Begin a span with modified font family.
public BeginSpan ( FontFamily fontFamily ) : void
fontFamily FontFamily
return void

BeginSpan() public method

Begin a span with modified font style.
public BeginSpan ( FontStyle fontStyle ) : void
fontStyle FontStyle
return void

BeginSpan() public method

Begin a span with modified font weight.
public BeginSpan ( FontWeight fontWeight ) : void
fontWeight FontWeight
return void

BeginSpan() public method

Begin a highlighted span.
public BeginSpan ( Highlighting.HighlightingColor highlightingColor ) : void
highlightingColor Highlighting.HighlightingColor
return void

BeginUnhandledSpan() protected abstract method

Gets called by the RichTextWriter base class when a BeginSpan() method that is not overwritten gets called.
protected abstract BeginUnhandledSpan ( ) : void
return void

EndSpan() public abstract method

Marks the end of the current span.
public abstract EndSpan ( ) : void
return void

Indent() public abstract method

Increases the indentation level.
public abstract Indent ( ) : void
return void

Unindent() public abstract method

Decreases the indentation level.
public abstract Unindent ( ) : void
return void

Write() public method

Writes the RichText instance.
public Write ( RichText richText ) : void
richText RichText
return void

Write() public method

Writes the RichText instance.
public Write ( RichText richText, int offset, int length ) : void
richText RichText
offset int
length int
return void