PropertyFilterOptions 列舉

定義

指定類型描述項應該報告的屬性,特別是 GetProperties(Object) 方法。 這個列舉用來指定 Filter 屬性的值。

此列舉支援其成員值的位元組合。

public enum class PropertyFilterOptions
[System.Flags]
public enum PropertyFilterOptions
[<System.Flags>]
type PropertyFilterOptions = 
Public Enum PropertyFilterOptions
繼承
PropertyFilterOptions
屬性

欄位

All 15

傳回所有屬性。

Invalid 1

只傳回指定物件目前內容中無效的屬性。

None 0

不傳回任何屬性。

SetValues 2

只傳回目前已設定區域數值的屬性。

UnsetValues 4

只傳回區域數值未設定的屬性,或不設定外部運算式存放區中 (例如繫結或延後資源) 的屬性。

Valid 8

傳回在目前範圍內物件上有效的任何屬性。

備註

此篩選機制只會由的自定義 DependencyPropertyDescriptor 實作 DependencyObject

無效和有效只與附加屬性相關。 屬性的有效性取決於使用下列屬性: AttachedPropertyBrowsableForChildrenAttributeAttachedPropertyBrowsableForTypeAttributeAttachedPropertyBrowsableWhenAttributePresentAttribute一旦載入 XAML,就會定義物件樹狀結構中附加屬性的預期範圍。 Designer 在方格中填入屬性方格和包含附加屬性的應用程式,必須檢查這些屬性的值或存在,以及目前元素的相對位置,而不是「擁有」附加屬性的父元素或子元素。 owner-setter 關聯性與屬性值一起,並 PropertyFilterOptions 定義在專案上設定的指定附加屬性是否有效或無效。

適用於

另請參閱