Export (0) Print
Expand All

ICategorizeProperties.GetCategoryName Method

Returns a BSTR containing the category name.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)

int GetCategoryName (
	[InAttribute] int PROPCAT,
	[InAttribute] uint lcid,
	out string pbstrName
)
int GetCategoryName (
	/** @attribute InAttribute() */ int PROPCAT, 
	/** @attribute InAttribute() */ UInt32 lcid, 
	/** @attribute OutAttribute() */ /** @ref */ String pbstrName
)
JScript does not support passing value-type arguments by reference.

Parameters

PROPCAT

[in] Specifies the property category.

lcid

[in] Specifies lcid.

pbstrName

[out] Pointer to a string containing the category name.

Return Value

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

COM Signature

From objext.idl:

HRESULT ICategorizeProperties::GetCategoryName(
   [in] PROPCAT propcat, 
   [in] LCID lcid, 
   [out] BSTR* pbstrName
);

The GetCategoryName method returns a BSTR containing the category name. There are 11 predefined property categories with negative values. You can define your own custom categories, but you must assign positive values to them. The predefined categories are:

Category

Value

PROPCAT_Nil

-1

PROPCAT_Misc

-2

PROPCAT_Font

-3

PROPCAT_Position

-4

PROPCAT_Appearanc

-5

PROPCAT_Behavior

-6

PROPCAT_Data

-7

PROPCAT_List

-8

PROPCAT_Text

-9

PROPCAT_Scale

-10

PROPCAT_DDE

-11

Community Additions

ADD
Show:
© 2014 Microsoft