IWpfTextView Interface

Definition

Represents a Visual Studio ITextView for the Windows Presentation Foundation (WPF) platform.

public interface IWpfTextView : Microsoft.VisualStudio.Text.Editor.ITextView, Microsoft.VisualStudio.Utilities.IPropertyOwner
Implements

Remarks

For more information about this interface, and about how it differs from ITextView, see "Text View Subsystem" in Inside the Editor.

Properties

Background

Gets or sets the background for the visual element.

FormattedLineSource

Gets the text formatter used by the view.

LineTransformSource

Gets the line transformer used by the view.

TextViewLines

Gets the text view lines as an IWpfTextViewLineCollection.

VisualElement

Gets the FrameworkElement that renders the view.

ZoomLevel

Gets or sets the zoom level for the IWpfTextView between 20% to 400%.

Methods

GetAdornmentLayer(String)

Gets a named IAdornmentLayer.

GetSpaceReservationManager(String)

Gets a named ISpaceReservationManager.

GetTextViewLineContainingBufferPosition(SnapshotPoint)

Gets the IWpfTextViewLine that contains the specified text buffer position.

Events

BackgroundBrushChanged

Occurs when the Background is set.

ZoomLevelChanged

Occurs when the ZoomLevel is set.

Applies to