ExpansionProvider.PositionCaretForEditing(IVsTextLines, TextSpan[]) 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.
Puts the caret in a position suitable for editing.
public:
virtual int PositionCaretForEditing(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pBuffer, cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ ts);
public:
virtual int PositionCaretForEditing(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pBuffer, Platform::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ ts);
virtual int PositionCaretForEditing(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines const & pBuffer, std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & ts);
public virtual int PositionCaretForEditing (Microsoft.VisualStudio.TextManager.Interop.IVsTextLines pBuffer, Microsoft.VisualStudio.TextManager.Interop.TextSpan[] ts);
abstract member PositionCaretForEditing : Microsoft.VisualStudio.TextManager.Interop.IVsTextLines * Microsoft.VisualStudio.TextManager.Interop.TextSpan[] -> int
override this.PositionCaretForEditing : Microsoft.VisualStudio.TextManager.Interop.IVsTextLines * Microsoft.VisualStudio.TextManager.Interop.TextSpan[] -> int
Public Overridable Function PositionCaretForEditing (pBuffer As IVsTextLines, ts As TextSpan()) As Integer
Parameters
- pBuffer
- IVsTextLines
The IVsTextLines buffer.
Returns
When overridden in derived classes, S_OK if the method succeeds, otherwise an error code.
Implements
Remarks
This method is an implementation of PositionCaretForEditing. By default it does nothing and returns S_OK.