VsTextViewClass.SetSelection(Int32, Int32, Int32, Int32) Method
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.
Selects specified text.
public:
virtual int SetSelection(int iAnchorLine, int iAnchorCol, int iEndLine, int iEndCol) = Microsoft::VisualStudio::TextManager::Interop::IVsTextView::SetSelection;
public:
virtual int SetSelection(int iAnchorLine, int iAnchorCol, int iEndLine, int iEndCol);
public:
virtual int SetSelection(int iAnchorLine, int iAnchorCol, int iEndLine, int iEndCol) = Microsoft::VisualStudio::TextManager::Interop::IVsTextView::SetSelection;
virtual int SetSelection(int iAnchorLine, int iAnchorCol, int iEndLine, int iEndCol);
public virtual int SetSelection (int iAnchorLine, int iAnchorCol, int iEndLine, int iEndCol);
abstract member SetSelection : int * int * int * int -> int
override this.SetSelection : int * int * int * int -> int
Public Overridable Function SetSelection (iAnchorLine As Integer, iAnchorCol As Integer, iEndLine As Integer, iEndCol As Integer) As Integer
Parameters
- iAnchorLine
- Int32
[in] Anchor line position for the selection.
- iAnchorCol
- Int32
[in] Anchor column position for the selection. Viewcol coordinates may include virtual space.
- iEndLine
- Int32
[in] End line position for the selection.
- iEndCol
- Int32
[in] End column position for the selection. Viewcol coordinates may include virtual space.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.