Compartilhar via


Chart.ProtectFormatting Property

Gets or sets a value that indicates whether modification of Chart control formatting is prevented.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)

Syntax

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

Property Value

Type: System.Boolean
true if Chart control formatting cannot be modified by the user; otherwise false.

Remarks

When this property is true, the Object command on the Format menu is disabled, the chart type dropdown on the chart command bar and chart elements cannot be added, moved, resized, or deleted.

.NET Framework Security

See Also

Reference

Chart Interface

Microsoft.Office.Tools.Excel Namespace