Udostępnij za pośrednictwem


Chart.ProtectFormatting Property (2007 System)

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.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)

Syntax

'Declaration
Public Property ProtectFormatting As Boolean
'Usage
Dim instance As Chart 
Dim value As Boolean 

value = instance.ProtectFormatting

instance.ProtectFormatting = value
public bool ProtectFormatting { get; set; }
public:
property bool ProtectFormatting {
    bool get ();
    void set (bool value);
}
public function get ProtectFormatting () : boolean 
public function set ProtectFormatting (value : boolean)

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 Class

Chart Members

Microsoft.Office.Tools.Excel Namespace