共用方式為


Worksheet.EnableAutoFilter Property

Gets or sets a value that indicates whether AutoFilter arrows are enabled when user-interface-only protection is turned on.

Namespace:  Microsoft.Office.Tools.Excel
Assemblies:   Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
  Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)

Syntax

'Declaration
Property EnableAutoFilter As Boolean
bool EnableAutoFilter { get; set; }

Property Value

Type: System.Boolean
true if AutoFilter arrows are enabled when user-interface-only protection is turned on; otherwise, false.

Remarks

This property applies to each worksheet and is not saved with the worksheet or session.

.NET Framework Security

See Also

Reference

Worksheet Interface

Microsoft.Office.Tools.Excel Namespace