Freigeben über


IVsProvideColorableItems.GetItemCount(Int32) Method

Definition

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

public:
 int GetItemCount([Runtime::InteropServices::Out] int % piCount);
int GetItemCount([Runtime::InteropServices::Out] int & piCount);
public int GetItemCount (out int piCount);
abstract member GetItemCount : int -> int
Public Function GetItemCount (ByRef piCount As Integer) As Integer

Parameters

piCount
Int32

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

Returns

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

Remarks

COM Signature

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.

Applies to