DataViewPropertyDescriptor 類別

定義

表示數據檢視階層中節點的動態屬性。

public ref class DataViewPropertyDescriptor : System::ComponentModel::PropertyDescriptor
public class DataViewPropertyDescriptor : System.ComponentModel.PropertyDescriptor
type DataViewPropertyDescriptor = class
    inherit PropertyDescriptor
Public Class DataViewPropertyDescriptor
Inherits PropertyDescriptor
繼承
DataViewPropertyDescriptor

建構函式

DataViewPropertyDescriptor(PropertyDescriptor)

使用屬性描述項物件,初始化 類別的新實例 DataViewPropertyDescriptor

DataViewPropertyDescriptor(PropertyDescriptor, Attribute[])

使用屬性描述項對象和屬性陣列,初始化 類別的新實例 DataViewPropertyDescriptor

DataViewPropertyDescriptor(String)

使用屬性名稱, DataViewPropertyDescriptor 初始化 類別的新實例。

DataViewPropertyDescriptor(String, Attribute[])

使用屬性名稱和屬性陣列, DataViewPropertyDescriptor 初始化 類別的新實例。

DataViewPropertyDescriptor(String, String)

使用屬性名稱和屬性顯示名稱,初始化 類別的新實例 DataViewPropertyDescriptor

DataViewPropertyDescriptor(String, String, String)

使用屬性名稱、屬性顯示名稱和類別名稱,初始化 類別的新實例 DataViewPropertyDescriptor

DataViewPropertyDescriptor(String, String, String, String)

使用屬性名稱、另一個版本的屬性名稱來初始化 類別的新實例 DataViewPropertyDescriptor ,以供顯示之用、類別名稱和描述。

DataViewPropertyDescriptor(String, String, String, String, Boolean)

使用屬性名稱、另一個版本的屬性名稱來初始化 類別的新實例 DataViewPropertyDescriptor ,以供顯示之用、類別名稱和描述。

屬性

Attributes

取得與目前屬性描述項相關聯的屬性集合。

Category

CategoryAttribute 目前屬性描述項的 取得類別。

ComponentType

取得屬性所系結之元件的型別。

Converter

取得目前屬性描述元的類型轉換器。

Description

DescriptionAttribute 目前屬性描述項的 取得描述。

IsReadOnly

取得值,指出目前的屬性描述元是否為唯讀。

Name

取得屬性名稱。

NameHashCode

取得屬性名稱的哈希碼。

PropertyType

取得屬性的類型。

方法

CanResetValue(Object)

指出是否可以為指定的元件重設 屬性的值。

GetChildProperties(Object, Attribute[])

PropertyDescriptorCollection使用指定的屬性陣組做為篩選,傳回指定元件的 。

GetValue(Object)

取得指定元件的目前屬性值。

ResetValue(Object)

將指定元件的 屬性值重設為預設值。

SetAttribute(Attribute)

將指定的屬性加入至此屬性的屬性清單。

SetAttributes(Attribute[])

將指定的屬性新增至此屬性的屬性清單。

SetCategory(String)

使用指定的類別值來設定類別屬性。

SetComponentType(Type)

將元件類型設定為指定的型別。

SetConverterType(String)

TypeConverterAttribute使用指定的型別名稱做為屬性描述元的數據轉換器,加入 。

SetConverterType(Type)

TypeConverterAttribute使用指定的型別做為屬性描述元的數據轉換器,加入 。

SetDescription(String)

使用指定的描述值來設定描述屬性。

SetDisplayName(String)

使用指定的顯示名稱值,設定顯示名稱屬性。

SetIsBrowsable(Boolean)

BrowsableAttribute加入對應至指定的布爾值,指出屬性是否可以在設計時間修改 屬性視窗。

SetIsLocalizable(Boolean)

LocalizableAttribute加入對應至指定的布爾值,這個值表示是否應該本地化屬性。

SetIsReadOnly(Boolean)

ReadOnlyAttribute加入對應至指定的布爾值,指出屬性是否為唯讀。

SetName(String)

設定屬性名稱。

SetPropertyType(Type)

將屬性類型設定為指定的型別。

SetValue(Object, Object)

將指定元件的 屬性值設定為新的值。

ShouldSerializeValue(Object)

指出是否應該串行化指定元件的屬性值。

適用於