In This Article

TextViewDrawContext Class

Provides access for drawing the content of an ITextView.

public class TextViewDrawContext : CanvasDrawContext, IDisposable
Inheritance:
System.Object DisposableObjectBase CanvasDrawContext Object
Implements:
System.IDisposable

Properties

CollapsibleRegionBackground

Gets a cached System.Windows.Media.Brush.

public Brush CollapsibleRegionBackground { get; }

Property Value

System.Windows.Media.Brush:

A cached System.Windows.Media.Brush.

CollapsibleRegionForeground

Gets a cached System.Windows.Media.Brush.

public Brush CollapsibleRegionForeground { get; }

Property Value

System.Windows.Media.Brush:

A cached System.Windows.Media.Brush.

ColumnGuidesBackground

Gets a cached System.Windows.Media.Brush.

public Brush ColumnGuidesBackground { get; }

Property Value

System.Windows.Media.Brush:

A cached System.Windows.Media.Brush.

CurrentLineBackground

Gets a cached System.Windows.Media.Brush.

public Brush CurrentLineBackground { get; }

Property Value

System.Windows.Media.Brush:

A cached System.Windows.Media.Brush.

CurrentLineBorderPen

Gets a cached System.Windows.Media.Pen.

public Pen CurrentLineBorderPen { get; }

Property Value

System.Windows.Media.Pen:

A cached System.Windows.Media.Pen.

DelimiterMatchingBackground

Gets a cached System.Windows.Media.Brush.

public Brush DelimiterMatchingBackground { get; }

Property Value

System.Windows.Media.Brush:

A cached System.Windows.Media.Brush.

InactiveSelectedTextBackground

Gets a cached System.Windows.Media.Brush.

public Brush InactiveSelectedTextBackground { get; }

Property Value

System.Windows.Media.Brush:

A cached System.Windows.Media.Brush.

IndentationGuidesBackground

Gets a cached System.Windows.Media.Brush.

public Brush IndentationGuidesBackground { get; }

Property Value

System.Windows.Media.Brush:

A cached System.Windows.Media.Brush.

IndicatorMarginBackground

Gets a cached System.Windows.Media.Brush.

public Brush IndicatorMarginBackground { get; }

Property Value

System.Windows.Media.Brush:

A cached System.Windows.Media.Brush.

LineNumberMarginBackground

Gets a cached System.Windows.Media.Brush.

public Brush LineNumberMarginBackground { get; }

Property Value

System.Windows.Media.Brush:

A cached System.Windows.Media.Brush.

LineNumberMarginForeground

Gets a cached System.Windows.Media.Brush.

public Brush LineNumberMarginForeground { get; }

Property Value

System.Windows.Media.Brush:

A cached System.Windows.Media.Brush.

OutliningMarginBackground

Gets a cached System.Windows.Media.Brush.

public Brush OutliningMarginBackground { get; }

Property Value

System.Windows.Media.Brush:

A cached System.Windows.Media.Brush.

OutliningMarginSquareBackground

Gets a cached System.Windows.Media.Brush.

public Brush OutliningMarginSquareBackground { get; }

Property Value

System.Windows.Media.Brush:

A cached System.Windows.Media.Brush.

PlainTextBackground

Gets a cached System.Windows.Media.Brush.

public Brush PlainTextBackground { get; }

Property Value

System.Windows.Media.Brush:

A cached System.Windows.Media.Brush.

RulerMarginBackground

Gets a cached System.Windows.Media.Brush.

public Brush RulerMarginBackground { get; }

Property Value

System.Windows.Media.Brush:

A cached System.Windows.Media.Brush.

RulerMarginForeground

Gets a cached System.Windows.Media.Brush.

public Brush RulerMarginForeground { get; }

Property Value

System.Windows.Media.Brush:

A cached System.Windows.Media.Brush.

SelectedTextBackground

Gets a cached System.Windows.Media.Brush.

public Brush SelectedTextBackground { get; }

Property Value

System.Windows.Media.Brush:

A cached System.Windows.Media.Brush.

SelectionMarginBackground

Gets a cached System.Windows.Media.Brush.

public Brush SelectionMarginBackground { get; }

Property Value

System.Windows.Media.Brush:

A cached System.Windows.Media.Brush.

TextAreaBounds

Gets or sets the bounds of the view's text area, accounting for zoom level and borders.

public Rect TextAreaBounds { get; }

Property Value

System.Windows.Rect:

The bounds of the view's text area, accounting for zoom level and borders.

View

Gets the text view being rendered.

public ITextView View { get; }

Property Value

ITextView:

The text view being rendered.

VisibleWhitespaceForeground

Gets a cached System.Windows.Media.Brush.

public Brush VisibleWhitespaceForeground { get; }

Property Value

System.Windows.Media.Brush:

A cached System.Windows.Media.Brush.

WordWrapGlyphMarginBackground

Gets a cached System.Windows.Media.Brush.

public Brush WordWrapGlyphMarginBackground { get; }

Property Value

System.Windows.Media.Brush:

A cached System.Windows.Media.Brush.

WordWrapGlyphMarginForeground

Gets a cached System.Windows.Media.Brush.

public Brush WordWrapGlyphMarginForeground { get; }

Property Value

System.Windows.Media.Brush:

A cached System.Windows.Media.Brush.

Methods

Dispose(Boolean)

Releases the unmanaged resources used by the object and optionally releases the managed resources.

protected override void Dispose(bool disposing)
Parameter Type Description
disposing System.Boolean

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Remarks

This method is called by the public Dispose method and the Finalize method. Dispose invokes this method with the disposing parameter set to true. Finalize invokes this method with disposing set to false.

Inherited Members