IVsProvideColorableItems::GetItemCount Method (Int32)

 

Determines the number of custom colorable items proffered by the language service.

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

int GetItemCount(
	[OutAttribute] int% piCount
)

Parameters

piCount
Type: System::Int32

[out] The number of custom colorable items provided by the language service.

Return Value

Type: System::Int32

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

From textmgr.idl:

HRESULT IVsProvideColorableItems::GetItemCount(
   [out] int *piCount
);

The core editor calls GetItemCount when it is loading a language service and needs to know how many custom colorable items the language service is proffering. This count includes only the number of colors the language service actually provides. If the language service chooses to include a placeholder for index 0, that placeholder should not be included in the count returned from this method.

Return to top
Show: