Excel.DataValidationType enum

データ検証型列挙型を表します。

注釈

API セット: ExcelApi 1.8

使用元

// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/excel/22-data-validation/data-validation-types.yaml

await Excel.run(async (context) => {
    // Get the data validation type of the currently selected range.
    const range = context.workbook.getSelectedRange();
    range.load("address");
    range.dataValidation.load("type");
    await context.sync();

    const validationType: Excel.DataValidationType = range.dataValidation.type as Excel.DataValidationType;
    console.log(`Data validation type for ${range.address}: ${validationType}`);
});

フィールド

custom = "Custom"

カスタム データ検証の種類。

date = "Date"

日付データ検証の種類。

decimal = "Decimal"

10 進データ検証型。

inconsistent = "Inconsistent"

不整合は、範囲に一貫性のないデータ検証があることを意味し、異なるセルに異なるルールがあることを示します。

list = "List"

リスト データ検証の種類。

mixedCriteria = "MixedCriteria"

混合条件は、範囲が一部のセルにデータ検証が存在することを意味しますが、一部のセルには存在しません。

none = "None"

None は、範囲にデータ検証がないことを示す値を許可することを意味します。

textLength = "TextLength"

テキスト長データ検証の種類。

time = "Time"

時刻データ検証の種類。

wholeNumber = "WholeNumber"

整数データ検証型。