Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Returns the display priority of the items in the Show settings for: drop-down list of the Fonts and Colors property page.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function GetPriority ( _
<OutAttribute> ByRef pPriority As UShort _
) As Integer
'Usage
Dim instance As IVsFontAndColorDefaults
Dim pPriority As UShort
Dim returnValue As Integer
returnValue = instance.GetPriority(pPriority)
int GetPriority(
out ushort pPriority
)
int GetPriority(
[OutAttribute] unsigned short% pPriority
)
abstract GetPriority :
pPriority:uint16 byref -> int
function GetPriority(
pPriority : ushort
) : int
Parameters
- pPriority
Type: System.UInt16%
[out] An __FCPRIORITY enumeration value indicating the priority value of the category.
Return Value
Type: System.Int32
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IVsFontAndColorDefaults Interface