ICategorizeProperties.MapPropertyToCategory(Int32, Int32) 方法

定义

返回指定属性的属性类别值。

public:
 int MapPropertyToCategory(int dispid, [Runtime::InteropServices::Out] int % ppropcat);
int MapPropertyToCategory(int dispid, [Runtime::InteropServices::Out] int & ppropcat);
public int MapPropertyToCategory (int dispid, out int ppropcat);
abstract member MapPropertyToCategory : int * int -> int
Public Function MapPropertyToCategory (dispid As Integer, ByRef ppropcat As Integer) As Integer

参数

dispid
Int32

中指定要显示的属性的调度 ID。

ppropcat
Int32

弄指定指向属性类别的指针。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

COM 签名

从 objext:

HRESULT ICategorizeProperties::MapPropertyToCategory(  
   [in] DISPID dispid,   
   [out] PROPCAT* ppropcat  
);  

MapPropertyToCategory方法为指定的属性返回相应的属性类别值。 有11个具有负值的预定义属性类别。 您可以定义自己的自定义类别,但必须为其赋值。 预定义的类别包括:

类别
PROPCAT_Nil -1
PROPCAT_Misc -2
PROPCAT_Font -3
PROPCAT_Position -4
PROPCAT_Appearance -5
PROPCAT_Behavior -6
PROPCAT_Data -7
PROPCAT_List -8
PROPCAT_Text -9
PROPCAT_Scale -10
PROPCAT_DDE -11

适用于