ExcelScript.WorksheetProtectionOptions interface

シート保護のオプションを表します。

注釈

/**
 * This script protects cells from being selected on the current worksheet.
 */
function main(workbook: ExcelScript.Workbook) {
  // Get the protection settings for the current worksheet.
  const currentSheet = workbook.getActiveWorksheet();
  const sheetProtection = currentSheet.getProtection();

  // Create a new WorksheetProtectionOptions object with the selectionMode property set to `none`.
  let protectionOptions : ExcelScript.WorksheetProtectionOptions = {
    selectionMode: ExcelScript.ProtectionSelectionMode.none
  }

  // Apply the given protection options.
  sheetProtection.protect(protectionOptions);
}

プロパティ

allowAutoFilter

オートフィルター機能の使用を許可するワークシート保護オプションを表します。

allowDeleteColumns

列の削除を許可するワークシート保護オプションを表します。

allowDeleteRows

行の削除を許可するワークシート保護オプションを表します。

allowEditObjects

オブジェクトの編集を許可するワークシート保護オプションを表します。

allowEditScenarios

シナリオの編集を許可するワークシート保護オプションを表します。

allowFormatCells

セルの書式設定を許可するワークシート保護オプションを表します。

allowFormatColumns

列の書式設定を許可するワークシート保護オプションを表します。

allowFormatRows

行の書式設定を許可するワークシート保護オプションを表します。

allowInsertColumns

列の挿入を許可するワークシート保護オプションを表します。

allowInsertHyperlinks

ハイパーリンクの挿入を許可するワークシート保護オプションを表します。

allowInsertRows

行の挿入を許可するワークシート保護オプションを表します。

allowPivotTables

ピボットテーブル機能の使用を許可するワークシート保護オプションを表します。

allowSort

並べ替え機能の使用を許可するワークシート保護オプションを表します。

selectionMode

選択モードのワークシート保護オプションを表します。

プロパティの詳細

allowAutoFilter

オートフィルター機能の使用を許可するワークシート保護オプションを表します。

allowAutoFilter?: boolean;

プロパティ値

boolean

allowDeleteColumns

列の削除を許可するワークシート保護オプションを表します。

allowDeleteColumns?: boolean;

プロパティ値

boolean

allowDeleteRows

行の削除を許可するワークシート保護オプションを表します。

allowDeleteRows?: boolean;

プロパティ値

boolean

allowEditObjects

オブジェクトの編集を許可するワークシート保護オプションを表します。

allowEditObjects?: boolean;

プロパティ値

boolean

allowEditScenarios

シナリオの編集を許可するワークシート保護オプションを表します。

allowEditScenarios?: boolean;

プロパティ値

boolean

allowFormatCells

セルの書式設定を許可するワークシート保護オプションを表します。

allowFormatCells?: boolean;

プロパティ値

boolean

allowFormatColumns

列の書式設定を許可するワークシート保護オプションを表します。

allowFormatColumns?: boolean;

プロパティ値

boolean

allowFormatRows

行の書式設定を許可するワークシート保護オプションを表します。

allowFormatRows?: boolean;

プロパティ値

boolean

allowInsertColumns

列の挿入を許可するワークシート保護オプションを表します。

allowInsertColumns?: boolean;

プロパティ値

boolean

ハイパーリンクの挿入を許可するワークシート保護オプションを表します。

allowInsertHyperlinks?: boolean;

プロパティ値

boolean

allowInsertRows

行の挿入を許可するワークシート保護オプションを表します。

allowInsertRows?: boolean;

プロパティ値

boolean

allowPivotTables

ピボットテーブル機能の使用を許可するワークシート保護オプションを表します。

allowPivotTables?: boolean;

プロパティ値

boolean

allowSort

並べ替え機能の使用を許可するワークシート保護オプションを表します。

allowSort?: boolean;

プロパティ値

boolean

selectionMode

選択モードのワークシート保護オプションを表します。

selectionMode?: ProtectionSelectionMode;

プロパティ値