ChartSheet.ProtectFormatting Property
Gets or sets a value that indicates whether Microsoft.Office.Tools.Excel.ChartSheet formatting cannot be modified by the user.
Namespace: Microsoft.Office.Tools.Excel
Assemblies: Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)
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 Microsoft.Office.Tools.Excel.ChartSheet formatting cannot be modified by the user.
Remarks
When this property is true, the Object command on the Format menu is disabled and Microsoft.Office.Tools.Excel.ChartSheet elements cannot be added, moved, resized, or deleted.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.