LanguageService::GetItemCount Method (Int32)

 

Returns the number of custom colorable items supported by the language service.

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public:
virtual int GetItemCount(
	[OutAttribute] int% count
)

Parameters

count
Type: System::Int32

[out] The number of custom colorable items available.

Return Value

Type: System::Int32

If successful, returns S_OK; otherwise, returns an error code.

This method determines the maximum number of IVsColorableItem objects that can be accessed by GetColorableItem. If you support custom colorable items, you must derive a class from the LanguageService class and implement this method as well as GetColorableItem.

The base method always returns E_NOTIMPL, indicating that custom colorable items are not supported. In this case, Visual Studio uses the default colors for all colorable items.

Return to top
Show: