Udostępnij za pośrednictwem


ICategorizeProperties Interface

Definition

Provides category names and maps categories to properties for display in the Properties window.

public interface class ICategorizeProperties
public interface class ICategorizeProperties
__interface ICategorizeProperties
[System.Runtime.InteropServices.Guid("4D07FC10-F931-11CE-B001-00AA006884E5")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface ICategorizeProperties
[System.Runtime.InteropServices.Guid("4D07FC10-F931-11CE-B001-00AA006884E5")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface ICategorizeProperties
[<System.Runtime.InteropServices.Guid("4D07FC10-F931-11CE-B001-00AA006884E5")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type ICategorizeProperties = interface
[<System.Runtime.InteropServices.Guid("4D07FC10-F931-11CE-B001-00AA006884E5")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type ICategorizeProperties = interface
Public Interface ICategorizeProperties
Attributes

Remarks

The Properties window displays properties either alphabetically or grouped by categories.

A VSPackage implements ICategorizeProperties so that Visual Studio can display the project's or project elements' properties in the appropriate categories in its property view.

You implement the interface like all interfaces in the Active Template Library (ATL); you derive your control class from ICategorizeProperties, add the interface entry to the control's interface map, and implement the two methods, MapPropertyToCategory and GetCategoryName.

Notes to Implementers

Implemented by VSPackages to allow properties to be displayed by category in the Properties window rather than alphabetically.

Methods

GetCategoryName(Int32, UInt32, String)

Returns a BSTR containing the category name.

MapPropertyToCategory(Int32, Int32)

Returns the property category value for the specified property.

Applies to