Returns the top (or primary) view of a split code window.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
- Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextView
[out] Pointer to IVsTextView interface of the primary text view.
Use this method to get a pointer to the primary view if the editor contains one or two views separated by a splitter. To access the secondary view in a split code window, call GetSecondaryView.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.