Export (0) Print
Expand All

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 IWpfTextView : ITextView, 
	IPropertyOwner

The IWpfTextView type exposes the following members.

  NameDescription
Public propertyBackgroundGets or sets the background for the visual element.
Public propertyBufferGraphGets the IBufferGraph that contains the set of source buffers that contribute to this view. (Inherited from ITextView.)
Public propertyCaretGets the caret element. (Inherited from ITextView.)
Public propertyFormattedLineSourceGets the text formatter used by the view.
Public propertyHasAggregateFocusDetermines whether the view or any of its adornments has focus. (Inherited from ITextView.)
Public propertyInLayoutDetermines whether the view is in the process of being laid out. (Inherited from ITextView.)
Public propertyIsClosedDetermines whether this text view has been closed. (Inherited from ITextView.)
Public propertyIsMouseOverViewOrAdornmentsDetermines whether the mouse is over the view or any of its adornments. (Inherited from ITextView.)
Public propertyLineHeightGets the nominal height of a line of text in the view. (Inherited from ITextView.)
Public propertyLineTransformSourceGets the line transformer used by the view.
Public propertyMaxTextRightCoordinateGets the right coordinate of the longest line, whether or not that line is currently visible, in logical pixels. (Inherited from ITextView.)
Public propertyOptionsGets the options for this text view. (Inherited from ITextView.)
Public propertyPropertiesGets the collection of properties controlled by the property owner. (Inherited from IPropertyOwner.)
Public propertyProvisionalTextHighlightGets the span of text covered by the provisional text highlight. (Inherited from ITextView.)
Public propertyRolesThe roles which this view plays. Roles partially determine the extensions that are instantiated for the view. (Inherited from ITextView.)
Public propertySelectionGets the selection element. (Inherited from ITextView.)
Public propertyTextBufferGets the ITextBuffer whose text is rendered in this view. (Inherited from ITextView.)
Public propertyTextDataModelGets the ITextDataModel of this text view. (Inherited from ITextView.)
Public propertyTextSnapshotGets the ITextSnapshot of the text that is currently rendered in the view. (Inherited from ITextView.)
Public propertyTextViewLinesGets the text view lines as an IWpfTextViewLineCollection.
Public propertyTextViewModelGets the ITextViewModel of this text view. (Inherited from ITextView.)
Public propertyViewportBottomGets the position of the bottom edge of the viewpoint in the text rendering coordinate system. (Inherited from ITextView.)
Public propertyViewportHeightGets the height of the visible content window (including the margin) in logical pixels. (Inherited from ITextView.)
Public propertyViewportLeftGets or sets the position of the left edge of the viewpoint in the text rendering coordinate system. (Inherited from ITextView.)
Public propertyViewportRightGets the position of the right edge of the viewpoint in the text rendering coordinate system. (Inherited from ITextView.)
Public propertyViewportTopGets the position of the top edge of the viewpoint in the text rendering coordinate system. (Inherited from ITextView.)
Public propertyViewportWidthGets the width of the visible content window (including the margin) in logical pixels. (Inherited from ITextView.)
Public propertyViewScrollerGets a helper that provides various methods to scroll or manipulate the view. (Inherited from ITextView.)
Public propertyVisualElementGets the FrameworkElement that renders the view.
Public propertyVisualSnapshotGets the ITextSnapshot of the visual buffer that is being rendered. (Inherited from ITextView.)
Public propertyZoomLevelGets or sets the zoom level for the IWpfTextView between 20% to 400%.
Top

  NameDescription
Public methodCloseCloses the text view host and its view. (Inherited from ITextView.)
Public methodDisplayTextLineContainingBufferPosition(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.)
Public methodDisplayTextLineContainingBufferPosition(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.)
Public methodGetAdornmentLayerGets a named IAdornmentLayer.
Public methodGetSpaceReservationManagerGets a named ISpaceReservationManager.
Public methodGetTextElementSpanGets the SnapshotSpan of text that constitutes a text element (a single visual representation) at the given SnapshotPoint. (Inherited from ITextView.)
Public methodGetTextViewLineContainingBufferPositionGets the IWpfTextViewLine that contains the specified text buffer position.
Public methodQueueSpaceReservationStackRefreshRequests a refresh of the space reservation stack. (Inherited from ITextView.)
Top

  NameDescription
Public eventBackgroundBrushChangedOccurs when the Background is set.
Public eventClosedOccurs immediately after the text view is closed. (Inherited from ITextView.)
Public eventGotAggregateFocusOccurs when the keyboard focus switches to the view or one of its adornments. (Inherited from ITextView.)
Public eventLayoutChangedOccurs when the text editor performs a text line layout. (Inherited from ITextView.)
Public eventLostAggregateFocusOccurs when the keyboard focus switches away from the view and any of its adornments. (Inherited from ITextView.)
Public eventMouseHoverOccurs when the mouse has hovered over a character. (Inherited from ITextView.)
Public eventViewportHeightChangedOccurs when the viewport height is changed. Deprecated. (Inherited from ITextView.)
Public eventViewportLeftChangedOccurs when the position of the viewport left edge is changed. Deprecated (Inherited from ITextView.)
Public eventViewportWidthChangedOccurs when the viewport width is changed. Deprecated. (Inherited from ITextView.)
Public eventZoomLevelChangedOccurs when the ZoomLevel is set.
Top

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

Show:
© 2014 Microsoft