Compartilhar via


LanguageService.GetItemCount(Int32) Method

Definition

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

public:
 virtual int GetItemCount([Runtime::InteropServices::Out] int % count);
 virtual int GetItemCount([Runtime::InteropServices::Out] int & count);
public virtual int GetItemCount (out int count);
abstract member GetItemCount : int -> int
override this.GetItemCount : int -> int
Public Overridable Function GetItemCount (ByRef count As Integer) As Integer

Parameters

count
Int32

[out] The number of custom colorable items available.

Returns

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

Implements

Remarks

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.

Applies to