Excel.CellPropertiesFontLoadOptions interface

オブジェクトに読み込むプロパティを format.font 指定します。

注釈

[ API セット: ExcelApi 1.9 ]

プロパティ

bold

プロパティを読み込む bold かどうかを指定します。

color

プロパティを読み込む color かどうかを指定します。

italic

プロパティを読み込む italic かどうかを指定します。

name

プロパティを読み込む name かどうかを指定します。

size

プロパティを読み込む size かどうかを指定します。

strikethrough

プロパティを読み込む strikethrough かどうかを指定します。

subscript

プロパティを読み込む subscript かどうかを指定します。

superscript

プロパティを読み込む superscript かどうかを指定します。

tintAndShade

プロパティを読み込む tintAndShade かどうかを指定します。

underline

プロパティを読み込む underline かどうかを指定します。

プロパティの詳細

bold

プロパティを読み込む bold かどうかを指定します。

bold?: boolean;

プロパティ値

boolean

注釈

[ API セット: ExcelApi 1.9 ]

color

プロパティを読み込む color かどうかを指定します。

color?: boolean;

プロパティ値

boolean

注釈

[ API セット: ExcelApi 1.9 ]

// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/excel/42-range/cell-properties.yaml

await Excel.run(async (context) => {
    const cell = context.workbook.getActiveCell();

    // Define the cell properties to get by setting the matching LoadOptions to true.
    const propertiesToGet = cell.getCellProperties({
        address: true,
        format: {
            fill: {
                color: true
            },
            font: {
                color: true
            }
        },
        style: true
    });

    // Sync to get the data from the workbook.
    await context.sync();
    const cellProperties = propertiesToGet.value[0][0];
    console.log(
        `Address: ${cellProperties.address}\nStyle: ${cellProperties.style}\nFill Color: ${cellProperties.format.fill.color}\nFont Color: ${cellProperties.format.font.color}`);
});

italic

プロパティを読み込む italic かどうかを指定します。

italic?: boolean;

プロパティ値

boolean

注釈

[ API セット: ExcelApi 1.9 ]

name

プロパティを読み込む name かどうかを指定します。

name?: boolean;

プロパティ値

boolean

注釈

[ API セット: ExcelApi 1.9 ]

size

プロパティを読み込む size かどうかを指定します。

size?: boolean;

プロパティ値

boolean

注釈

[ API セット: ExcelApi 1.9 ]

strikethrough

プロパティを読み込む strikethrough かどうかを指定します。

strikethrough?: boolean;

プロパティ値

boolean

注釈

[ API セット: ExcelApi 1.9 ]

subscript

プロパティを読み込む subscript かどうかを指定します。

subscript?: boolean;

プロパティ値

boolean

注釈

[ API セット: ExcelApi 1.9 ]

superscript

プロパティを読み込む superscript かどうかを指定します。

superscript?: boolean;

プロパティ値

boolean

注釈

[ API セット: ExcelApi 1.9 ]

tintAndShade

プロパティを読み込む tintAndShade かどうかを指定します。

tintAndShade?: boolean;

プロパティ値

boolean

注釈

[ API セット: ExcelApi 1.9 ]

underline

プロパティを読み込む underline かどうかを指定します。

underline?: boolean;

プロパティ値

boolean

注釈

[ API セット: ExcelApi 1.9 ]