CategoryEntry.MatchesPredicate 方法

在派生类中重写时,指示 CategoryEntry 是否与某个谓词匹配。

命名空间:  Microsoft.Windows.Design.PropertyEditing
程序集:  Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)

语法

声明
Public MustOverride Function MatchesPredicate ( _
    predicate As PropertyFilterPredicate _
) As Boolean
public abstract bool MatchesPredicate(
    PropertyFilterPredicate predicate
)
public:
virtual bool MatchesPredicate(
    PropertyFilterPredicate^ predicate
) abstract
abstract MatchesPredicate : 
        predicate:PropertyFilterPredicate -> bool 
public abstract function MatchesPredicate(
    predicate : PropertyFilterPredicate
) : boolean

参数

返回值

类型:System.Boolean
如果 CategoryEntry 与该谓词匹配,则为 true;否则为 false。

实现

IPropertyFilterTarget.MatchesPredicate(PropertyFilterPredicate)

备注

根据 CategoryEntry 与谓词是否匹配,此属性可用于触发对 PropertyContainer 的更改。 例如,宿主可以折叠类别(如果适用)。

.NET Framework 安全性

请参见

参考

CategoryEntry 类

Microsoft.Windows.Design.PropertyEditing 命名空间

IPropertyFilterTarget

MatchesPredicate

其他资源

WPF 设计器扩展性

属性编辑体系结构