In This Article

TextViewDrawContext Class

Provides access for drawing the content of an ITextView.

public class TextViewDrawContext : CanvasDrawContext, IDisposable
Inheritance:
object MarshalByRefObject DisposableObject CanvasDrawContext object
Implements:
IDisposable

Properties

CollapsibleRegionBackground

Gets a cached Brush.

public Brush? CollapsibleRegionBackground { get; }

Property Value

Brush:

A cached Brush.

CollapsibleRegionForeground

Gets a cached Brush.

public Brush? CollapsibleRegionForeground { get; }

Property Value

Brush:

A cached Brush.

ColumnGuidesBackground

Gets a cached Brush.

public Brush? ColumnGuidesBackground { get; }

Property Value

Brush:

A cached Brush.

CurrentLineBackground

Gets a cached Brush.

public Brush? CurrentLineBackground { get; }

Property Value

Brush:

A cached Brush.

CurrentLineBorderPen

Gets a cached Pen.

public Pen? CurrentLineBorderPen { get; }

Property Value

Pen:

A cached Pen.

DelimiterMatchingBackground

Gets a cached Brush.

public Brush? DelimiterMatchingBackground { get; }

Property Value

Brush:

A cached Brush.

InactiveSelectedTextBackground

Gets a cached Brush.

public Brush? InactiveSelectedTextBackground { get; }

Property Value

Brush:

A cached Brush.

IndentationGuidesBackground

Gets a cached Brush.

public Brush? IndentationGuidesBackground { get; }

Property Value

Brush:

A cached Brush.

IndicatorMarginBackground

Gets a cached Brush.

public Brush? IndicatorMarginBackground { get; }

Property Value

Brush:

A cached Brush.

LineNumberMarginBackground

Gets a cached Brush.

public Brush? LineNumberMarginBackground { get; }

Property Value

Brush:

A cached Brush.

LineNumberMarginCurrentLineBackground

Gets a cached Brush.

public Brush? LineNumberMarginCurrentLineBackground { get; }

Property Value

Brush:

A cached Brush.

LineNumberMarginCurrentLineForeground

Gets a cached Brush.

public Brush? LineNumberMarginCurrentLineForeground { get; }

Property Value

Brush:

A cached Brush.

LineNumberMarginForeground

Gets a cached Brush.

public Brush? LineNumberMarginForeground { get; }

Property Value

Brush:

A cached Brush.

OutliningMarginBackground

Gets a cached Brush.

public Brush? OutliningMarginBackground { get; }

Property Value

Brush:

A cached Brush.

OutliningMarginSquareBackground

Gets a cached Brush.

public Brush? OutliningMarginSquareBackground { get; }

Property Value

Brush:

A cached Brush.

PlainTextBackground

Gets a cached Brush.

public Brush? PlainTextBackground { get; }

Property Value

Brush:

A cached Brush.

RulerMarginBackground

Gets a cached Brush.

public Brush? RulerMarginBackground { get; }

Property Value

Brush:

A cached Brush.

RulerMarginForeground

Gets a cached Brush.

public Brush? RulerMarginForeground { get; }

Property Value

Brush:

A cached Brush.

SelectedTextBackground

Gets a cached Brush.

public Brush? SelectedTextBackground { get; }

Property Value

Brush:

A cached Brush.

SelectionMarginBackground

Gets a cached Brush.

public Brush? SelectionMarginBackground { get; }

Property Value

Brush:

A cached Brush.

TextAreaBounds

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

public Rectangle TextAreaBounds { get; }

Property Value

Rectangle:

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 Brush.

public Brush? VisibleWhitespaceForeground { get; }

Property Value

Brush:

A cached Brush.

WordWrapGlyphMarginBackground

Gets a cached Brush.

public Brush? WordWrapGlyphMarginBackground { get; }

Property Value

Brush:

A cached Brush.

WordWrapGlyphMarginForeground

Gets a cached Brush.

public Brush? WordWrapGlyphMarginForeground { get; }

Property Value

Brush:

A cached Brush.

Methods

Dispose(bool)

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

protected override void Dispose(bool disposing)
Parameter Type Description
disposing bool

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