次の方法で共有


DesignPropertyDescriptor Class

Definition

The purpose of DesignPropertyDescriptor is to allow us to customize the display name of the property in the property grid. None of the CLR implementations of PropertyDescriptor allow you to change the DisplayName.

public ref class DesignPropertyDescriptor : System::ComponentModel::PropertyDescriptor
public class DesignPropertyDescriptor : System.ComponentModel.PropertyDescriptor
type DesignPropertyDescriptor = class
    inherit PropertyDescriptor
Public Class DesignPropertyDescriptor
Inherits PropertyDescriptor
Inheritance
DesignPropertyDescriptor

Constructors

DesignPropertyDescriptor(PropertyDescriptor)

Constructor. Copy the base property descriptor and also hold a pointer to it for calling its overridden abstract methods.

Properties

ComponentType

Delegates to base.

Converter

Return type converter for property

DisplayName

Delegates to base.

IsReadOnly

Delegates to base.

PropertyType

Delegates to base.

Methods

CanResetValue(Object)

Delegates to base.

GetEditor(Type)

Delegates to base.

GetTypeFromNameProperty(String)

Convert name to a Type object.

GetValue(Object)

Delegates to base.

ResetValue(Object)

Delegates to base.

SetValue(Object, Object)

Delegates to base.

ShouldSerializeValue(Object)

Delegates to base.

Applies to