In This Article

TextViewDrawContext Class

Provides access for drawing the content of an ITextView.

public class TextViewDrawContext : CanvasDrawContext, IDisposable
Inheritance:
object DisposableObjectBase CanvasDrawContext object
Implements:
IDisposable

Properties

CollapsibleRegionBackground

A cached Brush.

public Brush? CollapsibleRegionBackground { get; }

Property Value

Brush

CollapsibleRegionForeground

A cached Brush.

public Brush? CollapsibleRegionForeground { get; }

Property Value

Brush

ColumnGuidesBackground

A cached Brush.

public Brush? ColumnGuidesBackground { get; }

Property Value

Brush

CurrentLineBackground

A cached Brush.

public Brush? CurrentLineBackground { get; }

Property Value

Brush

CurrentLineBorderPen

A cached Pen.

public Pen? CurrentLineBorderPen { get; }

Property Value

Pen

DelimiterMatchingBackground

A cached Brush.

public Brush? DelimiterMatchingBackground { get; }

Property Value

Brush

InactiveSelectedTextBackground

A cached Brush.

public Brush? InactiveSelectedTextBackground { get; }

Property Value

Brush

IndentationGuidesBackground

A cached Brush.

public Brush? IndentationGuidesBackground { get; }

Property Value

Brush

IndicatorMarginBackground

A cached Brush.

public Brush? IndicatorMarginBackground { get; }

Property Value

Brush

LineNumberMarginBackground

A cached Brush.

public Brush? LineNumberMarginBackground { get; }

Property Value

Brush

LineNumberMarginCurrentLineBackground

A cached Brush.

public Brush? LineNumberMarginCurrentLineBackground { get; }

Property Value

Brush

LineNumberMarginCurrentLineForeground

A cached Brush.

public Brush? LineNumberMarginCurrentLineForeground { get; }

Property Value

Brush

LineNumberMarginForeground

A cached Brush.

public Brush? LineNumberMarginForeground { get; }

Property Value

Brush

OutliningMarginBackground

A cached Brush.

public Brush? OutliningMarginBackground { get; }

Property Value

Brush

OutliningMarginSquareBackground

A cached Brush.

public Brush? OutliningMarginSquareBackground { get; }

Property Value

Brush

PlainTextBackground

A cached Brush.

public Brush? PlainTextBackground { get; }

Property Value

Brush

RulerMarginBackground

A cached Brush.

public Brush? RulerMarginBackground { get; }

Property Value

Brush

RulerMarginForeground

A cached Brush.

public Brush? RulerMarginForeground { get; }

Property Value

Brush

SelectedTextBackground

A cached Brush.

public Brush? SelectedTextBackground { get; }

Property Value

Brush

SelectionMarginBackground

A cached Brush.

public Brush? SelectionMarginBackground { get; }

Property Value

Brush

TextAreaBounds

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

public Rect? TextAreaBounds { get; }

Property Value

Rect

View

The text view being rendered.

public ITextView View { get; }

Property Value

ITextView

VisibleWhitespaceForeground

A cached Brush.

public Brush? VisibleWhitespaceForeground { get; }

Property Value

Brush

WordWrapGlyphMarginBackground

A cached Brush.

public Brush? WordWrapGlyphMarginBackground { get; }

Property Value

Brush

WordWrapGlyphMarginForeground

A cached Brush.

public Brush? WordWrapGlyphMarginForeground { get; }

Property Value

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

Extension Methods