VsTextViewClass.GetWordExtent(Int32, Int32, UInt32, 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.
Returns the current word extent.
public:
virtual int GetWordExtent(int iLine, int iCol, System::UInt32 dwFlags, cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pSpan) = Microsoft::VisualStudio::TextManager::Interop::IVsTextView::GetWordExtent;
public:
virtual int GetWordExtent(int iLine, int iCol, System::UInt32 dwFlags, cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pSpan);
public:
virtual int GetWordExtent(int iLine, int iCol, unsigned int dwFlags, Platform::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pSpan) = Microsoft::VisualStudio::TextManager::Interop::IVsTextView::GetWordExtent;
virtual int GetWordExtent(int iLine, int iCol, unsigned int dwFlags, std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & pSpan);
public virtual int GetWordExtent (int iLine, int iCol, uint dwFlags, Microsoft.VisualStudio.TextManager.Interop.TextSpan[] pSpan);
abstract member GetWordExtent : int * int * uint32 * Microsoft.VisualStudio.TextManager.Interop.TextSpan[] -> int
override this.GetWordExtent : int * int * uint32 * Microsoft.VisualStudio.TextManager.Interop.TextSpan[] -> int
Public Overridable Function GetWordExtent (iLine As Integer, iCol As Integer, dwFlags As UInteger, pSpan As TextSpan()) As Integer
Parameters
- iLine
- Int32
[in] Line index for the lines that contains the word.
- iCol
- Int32
[in] Column index for the word.
- dwFlags
- UInt32
[in] Flags specifying how the word extent is determined. For a list of dwFlags
values, see WORDEXTFLAGS.
- pSpan
- TextSpan[]
[out] Span of text identifying the word extent.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.