Partager via


VsTextViewClass.GetWordExtent Method

Returns the current word extent.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'Declaration
Public Overridable Function GetWordExtent ( _
    iLine As Integer, _
    iCol As Integer, _
    dwFlags As UInteger, _
    <OutAttribute> pSpan As TextSpan() _
) As Integer
public virtual int GetWordExtent(
    int iLine,
    int iCol,
    uint dwFlags,
    TextSpan[] pSpan
)
public:
virtual int GetWordExtent(
    [InAttribute] int iLine, 
    [InAttribute] int iCol, 
    [InAttribute] unsigned int dwFlags, 
    [OutAttribute] array<TextSpan>^ pSpan
)
abstract GetWordExtent : 
        iLine:int * 
        iCol:int * 
        dwFlags:uint32 * 
        pSpan:TextSpan[] byref -> int  
override GetWordExtent : 
        iLine:int * 
        iCol:int * 
        dwFlags:uint32 * 
        pSpan:TextSpan[] byref -> int
public function GetWordExtent(
    iLine : int, 
    iCol : int, 
    dwFlags : uint, 
    pSpan : TextSpan[]
) : int

Parameters

  • iLine
    Type: System.Int32

    [in] Line index for the lines that contains the word.

  • dwFlags
    Type: System.UInt32

    [in] Flags specifying how the word extent is determined. For a list of dwFlags values, see WORDEXTFLAGS.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

IVsTextView.GetWordExtent(Int32, Int32, UInt32, array<TextSpan[])

.NET Framework Security

See Also

Reference

VsTextViewClass Class

Microsoft.VisualStudio.TextManager.Interop Namespace