Partager via


LocalizablePropertyDescriptor Class

Definition

LocalizablePropertyDescriptor.

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

Constructors

LocalizablePropertyDescriptor(PropertyInfo, ResourceManager, Boolean)

Constructor

Properties

Category

The localized category string for the property

ComponentType

The type of the class containing the property

Converter

Returns the TypeConverter to be used for this property. If not overwridden returns the default for this type.

Description

The localized description of the property

DesignTimeOnly

Whether the property can only be set at design time

DisplayName

The localized name that is to be displayed in object browsers such as PropertyGrid

DisplayOrdinal

The ordinal at which the property should be displayed

IsBrowsable

Whether the property should be displayed in object browsers such as PropertyGrid

IsLocalizable

Whether the property value should be localized

IsReadOnly

Whether the property is read-only

Name

The unlocalized property name

PropertyType

The type of the property

Methods

CanResetValue(Object)

Whether resetting an object changes its value

ForceReadOnly()

Forces this property descriptor to return True for IsReadOnly

GetValue(Object)

Get the property value

ResetValue(Object)

Reset to the default value

SetValue(Object, Object)

Set the property value

ShouldSerializeValue(Object)

Whether the value of this property should be persisted.

Applies to