IFilterProperties.IsPropertyHidden Method

Returns whether the specified property is filtered (hidden or overridden) in the Properties window.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
Function IsPropertyHidden ( _
    PropertyName As String _
) As vsFilterProperties
vsFilterProperties IsPropertyHidden(
    string PropertyName
)
vsFilterProperties IsPropertyHidden(
    [InAttribute] String^ PropertyName
)
abstract IsPropertyHidden : 
        PropertyName:string -> vsFilterProperties 
function IsPropertyHidden(
    PropertyName : String
) : vsFilterProperties

Parameters

  • PropertyName
    Type: System.String
    The name of the property being queried to determine whether or not it is hidden or overridden in the Properties window.

Return Value

Type: EnvDTE.vsFilterProperties
A vsFilterProperties constant indicating whether or not the property is hidden or overridden.

Remarks

When the Properties window displays an object that has an Extender that supports IFilterProperties, it invokes IsPropertyHidden on each browsable property that the object exposes. If this method returns vsFilterPropertiesAll, the property is hidden. If it returns vsFilterPropertiesSet, the property is made read-only. If it returns vsFilterPropertiesNone, the property is displayed in the window.

To restrict the values of a property, the Extender must return vsFilterPropertiesAll and also expose the same named property through its own IDispatch implementation with the restricted set of values.

.NET Framework Security

See Also

Reference

IFilterProperties Interface

EnvDTE Namespace

Other Resources

Implementing and Using Automation Extenders