语言

LocalizablePropertyDescriptor 类

定义

LocalizablePropertyDescriptor。

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

构造函数

名称 说明
LocalizablePropertyDescriptor(PropertyInfo, ResourceManager, Boolean)

构造函数

属性

名称 说明
Category

属性的本地化类别字符串

ComponentType

包含属性的类的类型

Converter

返回要用于此属性的 TypeConverter。 如果未重写,则返回此类型的默认值。

Description

属性的本地化说明

DesignTimeOnly

属性是否只能在设计时设置

DisplayName

要显示在对象浏览器中的本地化名称,如 PropertyGrid

DisplayOrdinal

应显示属性的序号

IsBrowsable

属性是否应在属性浏览器(如 PropertyGrid)中显示

IsLocalizable

是否应本地化属性值

IsReadOnly

属性是否为只读

Name

未分配的属性名称

PropertyType

属性的类型

方法

名称 说明
CanResetValue(Object)

重置对象是否更改其值

ForceReadOnly()

强制此属性描述符返回 True for IsReadOnly

GetValue(Object)

获取属性值

ResetValue(Object)

重置为默认值

SetValue(Object, Object)

设置属性值

ShouldSerializeValue(Object)

是否应保留此属性的值。

适用于