共用方式為


LanguagePreferences.EnableCommenting Property

Gets or sets whether or not blocks of code can be commented and uncommented.

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

Syntax

'宣告
Public Property EnableCommenting As Boolean
    Get
    Set
'用途
Dim instance As LanguagePreferences
Dim value As Boolean

value = instance.EnableCommenting

instance.EnableCommenting = value
public bool EnableCommenting { get; set; }
public:
property bool EnableCommenting {
    bool get ();
    void set (bool value);
}
member EnableCommenting : bool with get, set
function get EnableCommenting () : boolean
function set EnableCommenting (value : boolean)

Property Value

Type: System.Boolean
true if blocks of code can be commented and uncommented with a single operation, otherwise false = commenting blocks in a single operation is not supported.

Remarks

This property is associated with the registry entry EnableCommenting.

In the base method, even though this property can be set, the value is not written back to the registry.

.NET Framework Security

See Also

Reference

LanguagePreferences Class

LanguagePreferences Members

Microsoft.VisualStudio.Package Namespace