VsTextViewClass.GetWordExtent(Int32, Int32, UInt32, TextSpan[]) Method

Definition

Returns the current word extent.

C++/CX
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;

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.

Implements

Applies to

Produkt Versiounen
Visual Studio SDK 2015, 2017, 2019, 2022