Table of Contents

Class ExCategoryAttribute

Namespace
ExControls
Assembly
ExControls.dll

Category of a property or event in the property grid; a CategoryType gets the localized name of the standard WinForms category.

public class ExCategoryAttribute : CategoryAttribute
Inheritance
ExCategoryAttribute
Inherited Members

Constructors

ExCategoryAttribute(CategoryType)

Initializes a new instance of the ExCategoryAttribute class with a standard category.

public ExCategoryAttribute(CategoryType type)

Parameters

type CategoryType

type of the category

ExCategoryAttribute(string)

Initializes a new instance of the ExCategoryAttribute class with a custom category.

public ExCategoryAttribute(string categoryName)

Parameters

categoryName string

name of the category

Properties

Type

Gets the type of the category (Default for a custom category).

public CategoryType Type { get; }

Property Value

CategoryType

Methods

CategoryToString(CategoryType)

Converts category type to resource string.

public static string CategoryToString(CategoryType type)

Parameters

type CategoryType

type of the category

Returns

string

the localized name of the category as WinForms shows it; the name of the type if it is not found