IVsTextViewEx::GetClusterRange Method (Int32, Int32, Int32, Int32, Int32)

 

Returns cluster range information for the given line number and character index.

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

int GetClusterRange(
	int iLine,
	int iDisplayCol,
	[OutAttribute] int% picCharacter,
	[OutAttribute] int% piStartCol,
	[OutAttribute] int% piEndCol
)

Parameters

iLine
Type: System::Int32

[in] The line number.

iDisplayCol
Type: System::Int32

[in] The character index.

picCharacter
Type: System::Int32

[out] The character count.

piStartCol
Type: System::Int32

[out] The start character index.

piEndCol
Type: System::Int32

[out] The end character index.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From textmgr2.idl:

HRESULT IVsTextViewEx::GetClusterRange(
   [in]long iLine, 
   [in]INT iDisplayCol, 
   [out]INT *picCharacter, 
   [out]INT *piStartCol, 
   [out]INT *piEndCol
);

Returns cluster range info given the line number and index of current character

Return to top
Show: