Skip to content

Commit

Permalink
load tags properties
Browse files Browse the repository at this point in the history
  • Loading branch information
jgreywolf committed Nov 17, 2023
1 parent 5a3491b commit 0ff60d5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,15 @@ export class PowerPointService extends OfficeService {

for(let slideIndex = 0; slideIndex < slides.items.length; slideIndex++) {
const slide = slides.items[slideIndex];
const shapes = slide.shapes.load('items, isNullObject');
const shapes = slide.shapes.load('items');

await context.sync();

for (let shapeIndex = 0; shapeIndex < shapes.items.length; shapeIndex++) {
const shape = shapes.items[shapeIndex];
shape.load('tags');

await context.sync();

try{
const tag = shape.tags.getItem(C.TokenSettingName);
Expand Down

0 comments on commit 0ff60d5

Please sign in to comment.