Compartir a través de


IVsFontAndColorDefaults.GetPriority(UInt16) Method

Definition

Returns the display priority of the items in the Show settings for: drop-down list of the Fonts and Colors property page.

public:
 int GetPriority([Runtime::InteropServices::Out] System::UInt16 % pPriority);
int GetPriority([Runtime::InteropServices::Out] unsigned short & pPriority);
public int GetPriority (out ushort pPriority);
abstract member GetPriority : uint16 -> int
Public Function GetPriority (ByRef pPriority As UShort) As Integer

Parameters

pPriority
UInt16

[out] An __FCPRIORITY enumeration value indicating the priority value of the category.

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsFontAndColorDefaults::GetPriority(  
   [out] FCPRIORITY *pPriority  
);  

Priority is zero based, and items with a lower priority number are placed higher in the category list.

The values returned should respect the groupings within that list defined by the __FCPRIORITY enumeration.

For instance the priority returned by GetPriority for the Text Editor and Printer categories should be greater than or equal to FCP_EDITOR but less than FCP_ENVIRONMENT.

Applies to