IWpfTextView Interface
TOC
Collapse the table of content
Expand the table of content

IWpfTextView Interface

 

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

Namespace:   Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)

public interface class IWpfTextView : ITextView, IPropertyOwner

NameDescription
System_CAPS_pubpropertyBackground

Gets or sets the background for the visual element.

System_CAPS_pubpropertyBufferGraph

Gets the IBufferGraph that contains the set of source buffers that contribute to this view.(Inherited from ITextView.)

System_CAPS_pubpropertyCaret

Gets the caret element.(Inherited from ITextView.)

System_CAPS_pubpropertyFormattedLineSource

Gets the text formatter used by the view.

System_CAPS_pubpropertyHasAggregateFocus

Determines whether the view or any of its adornments has focus.(Inherited from ITextView.)

System_CAPS_pubpropertyInLayout

Determines whether the view is in the process of being laid out.(Inherited from ITextView.)

System_CAPS_pubpropertyIsClosed

Determines whether this text view has been closed.(Inherited from ITextView.)

System_CAPS_pubpropertyIsMouseOverViewOrAdornments

Determines whether the mouse is over the view or any of its adornments.(Inherited from ITextView.)

System_CAPS_pubpropertyLineHeight

Gets the nominal height of a line of text in the view.(Inherited from ITextView.)

System_CAPS_pubpropertyLineTransformSource

Gets the line transformer used by the view.

System_CAPS_pubpropertyMaxTextRightCoordinate

Gets the right coordinate of the longest line, whether or not that line is currently visible, in logical pixels.(Inherited from ITextView.)

System_CAPS_pubpropertyOptions

Gets the options for this text view.(Inherited from ITextView.)

System_CAPS_pubpropertyProperties

(Inherited from IPropertyOwner.)

System_CAPS_pubpropertyProvisionalTextHighlight

Gets the span of text covered by the provisional text highlight.(Inherited from ITextView.)

System_CAPS_pubpropertyRoles

The roles which this view plays. Roles partially determine the extensions that are instantiated for the view.(Inherited from ITextView.)

System_CAPS_pubpropertySelection

Gets the selection element.(Inherited from ITextView.)

System_CAPS_pubpropertyTextBuffer

Gets the ITextBuffer whose text is rendered in this view.(Inherited from ITextView.)

System_CAPS_pubpropertyTextDataModel

Gets the ITextDataModel of this text view.(Inherited from ITextView.)

System_CAPS_pubpropertyTextSnapshot

Gets the ITextSnapshot of the text that is currently rendered in the view.(Inherited from ITextView.)

System_CAPS_pubpropertyTextViewLines

Gets the text view lines as an IWpfTextViewLineCollection.

System_CAPS_pubpropertyTextViewModel

Gets the ITextViewModel of this text view.(Inherited from ITextView.)

System_CAPS_pubpropertyViewportBottom

Gets the position of the bottom edge of the viewpoint in the text rendering coordinate system.(Inherited from ITextView.)

System_CAPS_pubpropertyViewportHeight

Gets the height of the visible content window (including the margin) in logical pixels.(Inherited from ITextView.)

System_CAPS_pubpropertyViewportLeft

Gets or sets the position of the left edge of the viewpoint in the text rendering coordinate system.(Inherited from ITextView.)

System_CAPS_pubpropertyViewportRight

Gets the position of the right edge of the viewpoint in the text rendering coordinate system.(Inherited from ITextView.)

System_CAPS_pubpropertyViewportTop

Gets the position of the top edge of the viewpoint in the text rendering coordinate system.(Inherited from ITextView.)

System_CAPS_pubpropertyViewportWidth

Gets the width of the visible content window (including the margin) in logical pixels.(Inherited from ITextView.)

System_CAPS_pubpropertyViewScroller

Gets a helper that provides various methods to scroll or manipulate the view.(Inherited from ITextView.)

System_CAPS_pubpropertyVisualElement

Gets the FrameworkElement that renders the view.

System_CAPS_pubpropertyVisualSnapshot

Gets the ITextSnapshot of the visual buffer that is being rendered.(Inherited from ITextView.)

System_CAPS_pubpropertyZoomLevel

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

NameDescription
System_CAPS_pubmethodClose()

Closes the text view host and its view.(Inherited from ITextView.)

System_CAPS_pubmethodDisplayTextLineContainingBufferPosition(SnapshotPoint, Double, ViewRelativePosition)

Formats and displays the contents of the text buffer so that the ITextViewLine containing the buffer position is displayed at the desired position.(Inherited from ITextView.)

System_CAPS_pubmethodDisplayTextLineContainingBufferPosition(SnapshotPoint, Double, ViewRelativePosition, Nullable<Double>, Nullable<Double>)

Formats and displays the contents of the text buffer so that the ITextViewLine containing the specified buffer position is displayed at the desired position.(Inherited from ITextView.)

System_CAPS_pubmethodGetAdornmentLayer(String^)

Gets a named IAdornmentLayer.

System_CAPS_pubmethodGetSpaceReservationManager(String^)
System_CAPS_pubmethodGetTextElementSpan(SnapshotPoint)

Gets the SnapshotSpan of text that constitutes a text element (a single visual representation) at the given SnapshotPoint.(Inherited from ITextView.)

System_CAPS_pubmethodGetTextViewLineContainingBufferPosition(SnapshotPoint)

Gets the IWpfTextViewLine that contains the specified text buffer position.

System_CAPS_pubmethodQueueSpaceReservationStackRefresh()

Requests a refresh of the space reservation stack.(Inherited from ITextView.)

NameDescription
System_CAPS_pubeventBackgroundBrushChanged

Occurs when the Background is set.

System_CAPS_pubeventClosed

Occurs immediately after the text view is closed.(Inherited from ITextView.)

System_CAPS_pubeventGotAggregateFocus

Occurs when the keyboard focus switches to the view or one of its adornments.(Inherited from ITextView.)

System_CAPS_pubeventLayoutChanged

Occurs when the text editor performs a text line layout.(Inherited from ITextView.)

System_CAPS_pubeventLostAggregateFocus

Occurs when the keyboard focus switches away from the view and any of its adornments.(Inherited from ITextView.)

System_CAPS_pubeventMouseHover

Occurs when the mouse has hovered over a character.(Inherited from ITextView.)

System_CAPS_pubeventViewportHeightChanged

Occurs when the viewport height is changed. Deprecated.(Inherited from ITextView.)

System_CAPS_pubeventViewportLeftChanged

Occurs when the position of the viewport left edge is changed. Deprecated(Inherited from ITextView.)

System_CAPS_pubeventViewportWidthChanged

Occurs when the viewport width is changed. Deprecated.(Inherited from ITextView.)

System_CAPS_pubeventZoomLevelChanged

Occurs when the ZoomLevel is set.

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

Return to top
Show:
© 2016 Microsoft