Word.Critique interface
ドキュメント内の段落の指定した部分の下線としてレンダリングされる批判。
注釈
例
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/50-document/manage-annotations.yaml
// Adds annotations to the selected paragraph.
await Word.run(async (context) => {
const paragraph = context.document.getSelection().paragraphs.getFirst();
const critique1 = {
colorScheme: Word.CritiqueColorScheme.red,
start: 1,
length: 3
};
const critique2 = {
colorScheme: Word.CritiqueColorScheme.green,
start: 6,
length: 1
};
const critique3 = {
colorScheme: Word.CritiqueColorScheme.blue,
start: 10,
length: 3
};
const critique4 = {
colorScheme: Word.CritiqueColorScheme.lavender,
start: 14,
length: 3
};
const critique5 = {
colorScheme: Word.CritiqueColorScheme.berry,
start: 18,
length: 10
};
const annotationSet: Word.AnnotationSet = {
critiques: [critique1, critique2, critique3, critique4, critique5]
};
const annotationIds = paragraph.insertAnnotations(annotationSet);
await context.sync();
console.log("Annotations inserted:", annotationIds.value);
});
プロパティ
color |
批判の配色を取得します。 |
length | 段落内の批判の長さを取得します。 |
start | 段落内の批判の開始インデックスを取得します。 |
プロパティの詳細
colorScheme
批判の配色を取得します。
colorScheme: Word.CritiqueColorScheme | "Red" | "Green" | "Blue" | "Lavender" | "Berry";
プロパティ値
Word.CritiqueColorScheme | "Red" | "Green" | "Blue" | "Lavender" | "Berry"
注釈
length
start
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Office Add-ins
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示