Word.CharacterCase enum
指定した範囲内の文字列の種類を指定します。
注釈
使用元
例
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/35-ranges/format-range-text-desktop.yaml
// Converts the first paragraph's text to uppercase.
await Word.run(async (context) => {
const paragraphRange: Word.Range = context.document.body.paragraphs.getFirst().getRange(Word.RangeLocation.content);
const characterCase: Word.CharacterCase = Word.CharacterCase.upper;
paragraphRange.case = characterCase;
await context.sync();
console.log("Converted the text to uppercase.");
});
フィールド
| fullWidth = "FullWidth" | 全角文字を指定します。 |
| halfWidth = "HalfWidth" | 半角文字を指定します。 |
| hiragana = "Hiragana" | ひらがなの文字を指定します。 |
| katakana = "Katakana" | カタカナ文字を指定します。 |
| lower = "Lower" | 小文字を指定します。 |
| next = "Next" | 次のケースを指定します。 |
| titleSentence = "TitleSentence" | 文のタイトル ケースを指定します。 |
| titleWord = "TitleWord" | 各単語のタイトル ケースを指定します。 |
| toggle = "Toggle" | 切り替えケースを指定します。 |
| upper = "Upper" | 大文字を指定します。 |