Word.BorderWidth enum
Представляет ширину границы стиля.
Комментарии
Используется
Примеры
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/28-formatting/manage-styles.yaml
// Sets the outside border width of the sample style.
await Word.run(async (context) => {
const sampleStyle: Word.Style = context.document.getStyles().getByName("Sample Style");
const borders: Word.BorderCollection = sampleStyle.borders;
const borderWidth: Word.BorderWidth = Word.BorderWidth.pt225;
borders.outsideBorderWidth = borderWidth;
await context.sync();
console.log("Set the Sample Style outside border width to 2.25 points.");
});
Поля
| mixed = "Mixed" | Смешанная ширина. |
| none = "None" | Нет ширины. |
| pt025 = "Pt025" | 0,25 балла. |
| pt050 = "Pt050" | 0,50 балла. |
| pt075 = "Pt075" | 0,75 балла. |
| pt100 = "Pt100" | 1,00 балла. Этот параметр используется по умолчанию. |
| pt150 = "Pt150" | 1,50 балла. |
| pt225 = "Pt225" | 2,25 балла. |
| pt300 = "Pt300" | 3,00 балла. |
| pt450 = "Pt450" | 4,50 балла. |
| pt600 = "Pt600" | 6,00 балла. |