DependencyPropertyDescriptor 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供 PropertyDescriptor 的擴充,說明相依性屬性的其他屬性特性。
public ref class DependencyPropertyDescriptor sealed : System::ComponentModel::PropertyDescriptor
public sealed class DependencyPropertyDescriptor : System.ComponentModel.PropertyDescriptor
type DependencyPropertyDescriptor = class
inherit PropertyDescriptor
Public NotInheritable Class DependencyPropertyDescriptor
Inherits PropertyDescriptor
- 繼承
備註
這個類別主要是由設計工具應用程式使用。 這些應用程式可能需要透過屬性視窗或其他工具來編輯屬性值來報告相依性屬性特性。
若要檢查特定屬性,以判斷其是否可 DependencyPropertyDescriptor 做為 PropertyDescriptor、呼叫 DependencyPropertyDescriptor.FromProperty(PropertyDescriptor)或 DependencyPropertyDescriptor.FromName。 如果任一方法傳 null
回 ,則屬性不是相依性屬性。 如果方法傳回有效的 DependencyPropertyDescriptor ,則 屬性是相依性屬性。
屬性
AttributeArray |
取得或設定屬性的陣列。 (繼承來源 MemberDescriptor) |
Attributes |
取得這個成員的屬性集合。 |
Category |
取得成員所屬的分類名稱,如 CategoryAttribute 中所指定的。 |
ComponentType |
取得這個屬性所繫結的元件型別。 |
Converter |
取得這個屬性的型別轉換子。 |
DependencyProperty |
傳回相依性屬性的識別項。 |
Description |
取得成員的描述,如 DescriptionAttribute 中所指定的。 |
DesignerCoerceValueCallback |
取得或設定回呼,設計工具使用這個回呼修改相依性屬性的有效值,然後再將相依性屬性值儲存在相依性屬性引擎。 |
DesignTimeOnly |
取得值,表示這個成員是否只在設計階段設定,如 DesignOnlyAttribute 中所指定的。 |
DisplayName |
取得可在視窗 (例如 [屬性] 視窗) 中顯示的名稱。 |
IsAttached |
取得值,指出屬性是否註冊為附加屬性,並正透過附加使用方式使用中。 |
IsBrowsable |
取得值,這個值表示屬性上的 BrowsableAttribute 值。 |
IsLocalizable |
取得值,表示這個屬性是否應該當地語系化,如 LocalizableAttribute 中指定的。 |
IsReadOnly |
取得值,表示這個屬性是否為唯讀。 |
Metadata |
取得與相依性屬性相關聯的中繼資料。 |
Name |
取得成員的名稱。 (繼承來源 MemberDescriptor) |
NameHashCode |
取得成員名稱的雜湊程式碼,如 GetHashCode() 中所指定的。 (繼承來源 MemberDescriptor) |
PropertyType |
取得相依性屬性的代表 Type。 |
SerializationVisibility |
取得值,表示這個屬性是否應該序列化,如 DesignerSerializationVisibilityAttribute 中指定的。 (繼承來源 PropertyDescriptor) |
SupportsChangeEvents |
指示這個屬性的數值變更告知是否可能來自屬性描述項之外 (例如來自元件本身),或者告知只會來自 SetValue(Object, Object) 的直接呼叫。 |
方法
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應