Udostępnij za pośrednictwem


Chart.ProtectSelection Property (2007 System)

Gets or sets a value that indicates whether selection of Chart control elements 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 ProtectSelection As Boolean
'Usage
Dim instance As Chart 
Dim value As Boolean 

value = instance.ProtectSelection

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

Property Value

Type: System.Boolean
true if Chart control elements cannot be selected; otherwise, false.

Remarks

When this property is true, shapes cannot be added to the Chart control, and the Click and DoubleClick events for Chart control elements do not occur.

.NET Framework Security

See Also

Reference

Chart Class

Chart Members

Microsoft.Office.Tools.Excel Namespace