Skip to content

Commit 5cf2f4a

Browse files
[PowerPoint] (tables) Code fixes (#5185)
1 parent 53e509e commit 5cf2f4a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/powerpoint/work-with-tables.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,14 @@ options.specificCellProperties[1][1] = {
144144
};
145145
```
146146

147-
You can also specify a [fill](/javascript/api/powerpoint/powerpoint.tablecellproperties#powerpoint-powerpoint-tablecellproperties-fill-member) property which is of type [FillProperties](/javascript/api/powerpoint/powerpoint.fillproperties). The `fill` property can specify a color and the transparency percentage. The following code sample shows how to create a fill for all table cells using the color "light red" and a 50% transparency.
147+
You can also specify a [fill](/javascript/api/powerpoint/powerpoint.tablecellproperties#powerpoint-powerpoint-tablecellproperties-fill-member) property which is of type [FillProperties](/javascript/api/powerpoint/powerpoint.fillproperties). The `fill` property can specify a color and the transparency percentage. The following code sample shows how to create a fill for all table cells using the color "dark red" and a 50% transparency.
148148

149149
```javascript
150150
uniformCellProperties: {
151151
fill: {
152-
color: "lightred",
153-
transparency: 0.5
154-
},
152+
color: "darkred",
153+
transparency: 0.5
154+
}
155155
}
156156
```
157157

@@ -248,15 +248,15 @@ const options: PowerPoint.TableAddOptions = {
248248
};
249249
options.specificCellProperties[0][0] = {
250250
horizontalAlignment: PowerPoint.ParagraphHorizontalAlignment.left,
251-
verticalAlignment: 0 //PowerPoint.TextVerticalAlignment.top
251+
verticalAlignment: PowerPoint.TextVerticalAlignment.top
252252
};
253253
options.specificCellProperties[1][0] = {
254254
horizontalAlignment: PowerPoint.ParagraphHorizontalAlignment.center,
255-
verticalAlignment: 1 //PowerPoint.TextVerticalAlignment.middle
255+
verticalAlignment: PowerPoint.TextVerticalAlignment.middle
256256
};
257257
options.specificCellProperties[2][0] = {
258258
horizontalAlignment: PowerPoint.ParagraphHorizontalAlignment.right,
259-
verticalAlignment: 2 //PowerPoint.TextVerticalAlignment.bottom
259+
verticalAlignment: PowerPoint.TextVerticalAlignment.bottom
260260
};
261261
await insertTableOnCurrentSlide(3, 3, options);
262262
```
@@ -288,7 +288,7 @@ const options: PowerPoint.TableAddOptions = {
288288
uniformCellProperties: {
289289
fill: { color: "lightcyan" },
290290
horizontalAlignment: PowerPoint.ParagraphHorizontalAlignment.center,
291-
verticalAlignment: 1, //PowerPoint.TextVerticalAlignment.middle
291+
verticalAlignment: PowerPoint.TextVerticalAlignment.middle,
292292
borders: {
293293
bottom: {
294294
color: "black",

0 commit comments

Comments
 (0)