Compartilhar via


Worksheet.EnableSelection Property

Definition

Gets or sets a value indicating which cells can be selected on the sheet.

public:
 property Microsoft::Office::Interop::Excel::XlEnableSelection EnableSelection { Microsoft::Office::Interop::Excel::XlEnableSelection get(); void set(Microsoft::Office::Interop::Excel::XlEnableSelection value); };
public Microsoft.Office.Interop.Excel.XlEnableSelection EnableSelection { get; set; }
member this.EnableSelection : Microsoft.Office.Interop.Excel.XlEnableSelection with get, set
Public Property EnableSelection As XlEnableSelection

Property Value

One of the XlEnableSelection values.

Remarks

This property takes effect only when the worksheet is protected: xlNoSelection prevents any selection on the sheet, xlUnlockedCells allows only those cells that are not locked to be selected, and xlNoRestrictions allows any cell to be selected.

Applies to