共用方式為


DocumentProperties.Visible Property

Determines if the DocumentProperties object is visible in the Properties window.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)

Syntax

'宣告
<BrowsableAttribute(False)> _
Public Property Visible As Boolean
[BrowsableAttribute(false)]
public bool Visible { get; set; }

Property Value

Type: System.Boolean
If the DocumentProperties object is visible, returns true; otherwise, returns false.

Remarks

The DocumentProperties class uses an internal flag to track visibility and this flag is set in the DocumentProperties class constructor. If the internal flag is changed by the Visible property, the Properties window is refreshed but only if the internal flag differs from the new flag.

.NET Framework Security

See Also

Reference

DocumentProperties Class

Microsoft.VisualStudio.Package Namespace