다음을 통해 공유


IVsPerPropertyBrowsing Interface

IVsPerPropertyBrowsing is used to perform custom edits for localization on some properties displayed in the Properties window.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
<GuidAttribute("0FF510A3-5FA5-49F1-8CCC-190D71083F3E")> _
<InterfaceTypeAttribute()> _
Public Interface IVsPerPropertyBrowsing
[GuidAttribute("0FF510A3-5FA5-49F1-8CCC-190D71083F3E")]
[InterfaceTypeAttribute()]
public interface IVsPerPropertyBrowsing
[GuidAttribute(L"0FF510A3-5FA5-49F1-8CCC-190D71083F3E")]
[InterfaceTypeAttribute()]
public interface class IVsPerPropertyBrowsing
[<GuidAttribute("0FF510A3-5FA5-49F1-8CCC-190D71083F3E")>]
[<InterfaceTypeAttribute()>]
type IVsPerPropertyBrowsing =  interface end
public interface IVsPerPropertyBrowsing

The IVsPerPropertyBrowsing type exposes the following members.

Methods

  Name Description
Public method CanResetPropertyValue Checks whether the given property can be reset to the default value.
Public method DisplayChildProperties Allows properties of type VT_DISPATCH to be viewed recursively.
Public method GetClassName Returns the classname for this object.
Public method GetLocalizedPropertyInfo Retrieves the localized name and description for a property.
Public method HasDefaultValue Determines if the current value for a property is the default.
Public method HideProperty Hides the property at the given dispid from the Properties window.
Public method IsPropertyReadOnly Determines if a property should be made read only.
Public method ResetPropertyValue Resets the value of the given property.

Top

Remarks

IVsPerPropertyBrowsing allows you to localize and hide the names of properties displayed during design time, determine the default value of specific properties in the selected object and whether or not the current value is the default. You can also use this interface to set properties to read-only, and to determine if the property can be changed back to the default if it has been modified.

Manipulating properties using this interface during design time will not affect what the user sees during runtime. See How to: Hide Properties with Child Properties for an example of IVsPerPropertyBrowsing implementation.

Notes to Implementers

Implemented by projects to control display of properties in the Properties Window.

Notes to Callers

Called by the environment when the Properties window is populated.

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace