Word.SelectionInsertSymbolOptions interface
Selection.insertSymbol メソッドのオプションを表します。
注釈
[ API set: WordApiDesktop 1.4 ]
例
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/55-selection/insert-symbol.yaml
// Inserts a Wingdings checkmark (ANSI character 252) at the selection.
// The font option selects the symbol font, unicode: false uses the ANSI code point,
// and bias: Word.FontBias.standard ensures the standard (non-East-Asian) glyph is used.
await Word.run(async (context) => {
const options: Word.SelectionInsertSymbolOptions = {
font: "Wingdings",
unicode: false,
bias: Word.FontBias.standard,
};
context.document.selection.insertSymbol(252, options);
await context.sync();
console.log("Inserted Wingdings checkmark (character 252).");
});
プロパティ
| bias | 指定した場合は、シンボルのフォント バイアスを指定します。 この引数は、東アジア言語の文字の正しいフォントのバイアスを設定するために役立ちます。 既定値は |
| font | 指定した場合は、シンボルを含むフォントの名前を指定します。 |
| unicode | 指定した場合は、文字が Unicode かどうかを指定します。
|
プロパティの詳細
bias
指定した場合は、シンボルのフォント バイアスを指定します。 この引数は、東アジア言語の文字の正しいフォントのバイアスを設定するために役立ちます。 既定値は standardです。
bias?: Word.FontBias | "Standard" | "FarEast" | "NoSpecified";
プロパティ値
Word.FontBias | "Standard" | "FarEast" | "NoSpecified"
注釈
font
unicode
指定した場合は、文字が Unicode かどうかを指定します。
true
Selection.insertSymbol メソッドの呼び出し時に characterNumber プロパティで指定された Unicode 文字を挿入する場合は、代わりに characterNumber プロパティで指定された ANSI 文字を挿入するfalse。 既定値は falseです。
unicode?: boolean;
プロパティ値
boolean