ITextView2 Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Extensions to ITextView, augmenting functionality. For every member here there should also be an extension method in TextViewExtensions.
public interface class ITextView2 : Microsoft::VisualStudio::Text::Editor::ITextView, Microsoft::VisualStudio::Utilities::IPropertyOwner
public interface ITextView2 : Microsoft.VisualStudio.Text.Editor.ITextView, Microsoft.VisualStudio.Utilities.IPropertyOwner
type ITextView2 = interface
interface ITextView
interface IPropertyOwner
Public Interface ITextView2
Implements IPropertyOwner, ITextView
- Implements
Properties
BufferGraph |
Gets the IBufferGraph that contains the set of source buffers that contribute to this view. (Inherited from ITextView) |
Caret |
Gets the caret element. (Inherited from ITextView) |
HasAggregateFocus |
Determines whether the view or any of its adornments has focus. (Inherited from ITextView) |
InLayout |
Determines whether the view is in the process of being laid out. (Inherited from ITextView) |
InOuterLayout |
Determines whether the view is in the process of being laid out or is preparing to be laid out. |
IsClosed |
Determines whether this text view has been closed. (Inherited from ITextView) |
IsMouseOverViewOrAdornments |
Determines whether the mouse is over the view or any of its adornments. (Inherited from ITextView) |
LineHeight |
Gets the nominal height of a line of text in the view. (Inherited from ITextView) |
MaxTextRightCoordinate |
Gets the right coordinate of the longest line, whether or not that line is currently visible, in logical pixels. (Inherited from ITextView) |
MultiSelectionBroker |
Gets an object for managing selections within the view. |
Options |
Gets the options for this text view. (Inherited from ITextView) |
Properties |
The collection of properties controlled by the property owner. (Inherited from IPropertyOwner) |
ProvisionalTextHighlight |
Gets the span of text covered by the provisional text highlight. (Inherited from ITextView) |
Roles |
The roles which this view plays. Roles partially determine the extensions that are instantiated for the view. (Inherited from ITextView) |
Selection |
Gets the selection element. (Inherited from ITextView) |
TextBuffer |
Gets the ITextBuffer whose text is rendered in this view. (Inherited from ITextView) |
TextDataModel |
Gets the ITextDataModel of this text view. (Inherited from ITextView) |
TextSnapshot |
Gets the ITextSnapshot of the text that is currently rendered in the view. (Inherited from ITextView) |
TextViewLines |
Gets a read-only list of the ITextViewLine objects rendered in this view. (Inherited from ITextView) |
TextViewModel |
Gets the ITextViewModel of this text view. (Inherited from ITextView) |
ViewportBottom |
Gets the position of the bottom edge of the viewport in the text rendering coordinate system. (Inherited from ITextView) |
ViewportHeight |
Gets the height of the visible content window in logical pixels. (Inherited from ITextView) |
ViewportLeft |
Gets or sets the position of the left edge of the viewport in the text rendering coordinate system. (Inherited from ITextView) |
ViewportRight |
Gets the position of the right edge of the viewport in the text rendering coordinate system. (Inherited from ITextView) |
ViewportTop |
Gets the position of the top edge of the viewport in the text rendering coordinate system. (Inherited from ITextView) |
ViewportWidth |
Gets the width of the visible content window in logical pixels. (Inherited from ITextView) |
ViewScroller |
Gets a helper that provides various methods to scroll or manipulate the view. (Inherited from ITextView) |
VisualSnapshot |
Gets the ITextSnapshot of the visual buffer that is being rendered. (Inherited from ITextView) |
Methods
Close() |
Closes the text view and its view. (Inherited from ITextView) |
DisplayTextLineContainingBufferPosition(SnapshotPoint, Double, ViewRelativePosition, Nullable<Double>, Nullable<Double>) |
Formats and displays the contents of the text buffer so that the ITextViewLine containing |
DisplayTextLineContainingBufferPosition(SnapshotPoint, Double, ViewRelativePosition) |
Formats and displays the contents of the text buffer so that the ITextViewLine containing |
GetTextElementSpan(SnapshotPoint) |
Gets the SnapshotSpan of text that constitutes a text element (a single visual representation) at the given SnapshotPoint. (Inherited from ITextView) |
GetTextViewLineContainingBufferPosition(SnapshotPoint) |
Gets the ITextViewLine that contains the specified text buffer position. (Inherited from ITextView) |
QueuePostLayoutAction(Action) |
Adds an action to be performed after any layouts are complete. If there is not a layout in progress, the action will be performed immediately. This must be called on the UI thread, and actions will be performed on the UI thread. |
QueueSpaceReservationStackRefresh() |
Requests a refresh of the space reservation stack. (Inherited from ITextView) |
TryGetTextViewLineContainingBufferPosition(SnapshotPoint, ITextViewLine) |
Attempts to get the ITextViewLine that contains the specified text buffer position. |
TryGetTextViewLines(ITextViewLineCollection) |
Attempts to get a read-only list of the ITextViewLine objects rendered in this view. |
Events
Closed |
Occurs immediately after the text view is closed. (Inherited from ITextView) |
GotAggregateFocus |
Occurs when the keyboard focus switches to the view or one of its adornments. (Inherited from ITextView) |
LayoutChanged |
Occurs whenever the text displayed in the view changes. (Inherited from ITextView) |
LostAggregateFocus |
Occurs when the keyboard focus switches away from the view and any of its adornments. (Inherited from ITextView) |
MaxTextRightCoordinateChanged |
Raised whenever the view's MaxTextRightCoordinate is changed. |
MouseHover |
Occurs when the mouse has hovered over the same character. (Inherited from ITextView) |
ViewportHeightChanged |
Occurs when the viewport's height is changed. (Inherited from ITextView) |
ViewportLeftChanged |
Occurs when the position of the viewport's left edge is changed. (e.g. when the view is horizontally scrolled) (Inherited from ITextView) |
ViewportWidthChanged |
Occurs when the viewport's width is changed. (Inherited from ITextView) |
Extension Methods
GetInOuterLayout(ITextView) |
Determines whether a view is in the process of being laid out or is preparing to be laid out. |
GetMultiSelectionBroker(ITextView) |
Gets an object for managing selections within the view. |
IsEmbeddedTextView(ITextView) |
Gets whether given ITextView is embedded in another ITextView. |
IsReadOnlyTextView(ITextView) |
Gets whether given ITextView is considered read-only. |
QueuePostLayoutAction(ITextView, Action) | |
TryGetContainingTextView(ITextView, ITextView) | |
TryGetTextViewLineContainingBufferPosition(ITextView, SnapshotPoint, ITextViewLine) |
See TryGetTextViewLineContainingBufferPosition(SnapshotPoint, ITextViewLine). |
TryGetTextViewLines(ITextView, ITextViewLineCollection) |