Export (0) Print
Expand All

PropertyFilterOptions Enumeration

Specifies which properties should be reported by type descriptors, specifically the GetProperties method. This enumeration is used to specify the value of the PropertyFilterAttribute.Filter property.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace: System.ComponentModel
Assembly: WindowsBase (in windowsbase.dll)

[FlagsAttribute] 
public enum PropertyFilterOptions
/** @attribute FlagsAttribute() */ 
public enum PropertyFilterOptions
FlagsAttribute 
public enum PropertyFilterOptions
<object property="EnumerationValue" .../>

 Member nameDescription
AllReturn all properties. 
InvalidReturn only those properties that are not valid given the current context of the object. See Remarks. 
NoneReturn no properties 
SetValuesReturn only those properties that have local values currently set. 
UnsetValuesReturn only those properties whose local values are not set, or do not have properties set in an external expression store (such as binding or deferred resource). 
ValidReturn any property that is valid on the object in the current scope. See Remarks. 

This filter mechanism is only implemented by the custom DependencyPropertyDescriptor for DependencyObject.

Invalid and Valid are relevant only for attached properties. The validity of a property is determined by working with the following attributes: AttachedPropertyBrowsableForChildrenAttribute , AttachedPropertyBrowsableForTypeAttribute, AttachedPropertyBrowsableWhenAttributePresentAttribute which define the intended scope of the attached property in the logical tree. Designers who populate property grids must examine the value or presence of these attributes and the relative position of the current element versus either a parent or child element that "owns" the attached property. This relationship will define whether an attached property that is set on the current element is valid or invalid, with regard to the property options specified by PropertyFilterOptions.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

Show:
© 2014 Microsoft