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
Gets a cached Brush.
CollapsibleRegionForeground
Gets a cached Brush.
ColumnGuidesBackground
Gets a cached Brush.
CurrentLineBackground
Gets a cached Brush.
CurrentLineBorderPen
Gets a cached Pen.
DelimiterMatchingBackground
Gets a cached Brush.
InactiveSelectedTextBackground
Gets a cached Brush.
IndentationGuidesBackground
Gets a cached Brush.
IndicatorMarginBackground
Gets a cached Brush.
LineNumberMarginBackground
Gets a cached Brush.
LineNumberMarginCurrentLineBackground
Gets a cached Brush.
LineNumberMarginCurrentLineForeground
Gets a cached Brush.
LineNumberMarginForeground
Gets a cached Brush.
OutliningMarginBackground
Gets a cached Brush.
OutliningMarginSquareBackground
Gets a cached Brush.
PlainTextBackground
Gets a cached Brush.
RulerMarginBackground
Gets a cached Brush.
RulerMarginForeground
Gets a cached Brush.
SelectedTextBackground
Gets a cached Brush.
SelectionMarginBackground
Gets a cached 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
- Rect:
The bounds of the view's text area, accounting for zoom level and borders.
View
Gets the text view being rendered.
VisibleWhitespaceForeground
Gets a cached Brush.
WordWrapGlyphMarginBackground
Gets a cached Brush.
WordWrapGlyphMarginForeground
Gets 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 |
|
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
- CanvasDrawContext.DrawEllipse(Rect, Color, LineKind, float)
- CanvasDrawContext.DrawEllipse(Rect, Pen)
- CanvasDrawContext.DrawGeometry(Point, Geometry, Color, LineKind, float)
- CanvasDrawContext.DrawGeometry(Point, Geometry, Pen)
- CanvasDrawContext.DrawImage(Point, ImageSource)
- CanvasDrawContext.DrawLine(Point, Point, Color, LineKind, float)
- CanvasDrawContext.DrawLine(Point, Point, Pen)
- CanvasDrawContext.DrawRectangle(Rect, Color, LineKind, float)
- CanvasDrawContext.DrawRectangle(Rect, Pen)
- CanvasDrawContext.DrawRoundedRectangle(Rect, float, Color, LineKind, float)
- CanvasDrawContext.DrawRoundedRectangle(Rect, float, Pen)
- CanvasDrawContext.DrawSquiggleLine(Rect, Color)
- CanvasDrawContext.DrawText(Point, ITextLayoutLine)
- CanvasDrawContext.FillEllipse(Rect, Color)
- CanvasDrawContext.FillEllipse(Rect, Brush)
- CanvasDrawContext.FillGeometry(Point, Geometry, Color)
- CanvasDrawContext.FillGeometry(Point, Geometry, Brush)
- CanvasDrawContext.FillRectangle(Rect, Color)
- CanvasDrawContext.FillRectangle(Rect, Brush)
- CanvasDrawContext.FillRoundedRectangle(Rect, float, Color)
- CanvasDrawContext.FillRoundedRectangle(Rect, float, Brush)
- CanvasDrawContext.PopBounds()
- CanvasDrawContext.PopClip()
- CanvasDrawContext.PopScaleTransform()
- CanvasDrawContext.PushBounds(Rect)
- CanvasDrawContext.PushClip(Rect)
- CanvasDrawContext.PushScaleTransform(double)
- CanvasDrawContext.Bounds
- CanvasDrawContext.Canvas
- CanvasDrawContext.ClipBounds
- CanvasDrawContext.PlatformRenderer
- CanvasDrawContext.Scale
- DisposableObjectBase.Dispose()
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()