Skip to content

[excel] (Shapes) Add shape fill and line format samples#1087

Merged
AlexJerabek merged 4 commits into
mainfrom
AlexJ-SampleMapping-4-14
May 4, 2026
Merged

[excel] (Shapes) Add shape fill and line format samples#1087
AlexJerabek merged 4 commits into
mainfrom
AlexJ-SampleMapping-4-14

Conversation

@AlexJerabek
Copy link
Copy Markdown
Collaborator

Adding a Script Lab sample to cover a bunch of shape APIs that don't otherwise have coverage.

Comment thread samples/excel/44-shape/shape-fill-and-line-formatting.yaml Outdated
Comment thread snippet-extractor-output/snippets.yaml Outdated
await context.sync();
});
Excel.Shape#fill:member:
Excel.Shape#fill:member(1):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a Shape.fill is a property not a method

Suggested change
Excel.Shape#fill:member(1):
Excel.Shape#fill:member:

Comment thread snippet-extractor-output/snippets.yaml Outdated
textbox.name = "Textbox";
await context.sync();
});
Excel.ShapeFill#setSolidColor:member(1):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider including a mapping for Excel.ShapeFill class

@AlexJerabek
Copy link
Copy Markdown
Collaborator Author

Thanks @ElizabethSamuel-MSFT! Feedback heard and applied.

Comment thread snippet-extractor-output/snippets.yaml Outdated
textbox.name = "Textbox";
await context.sync();
});
Excel.ShapeFill:interface:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ShapeFill is a class

Suggested change
Excel.ShapeFill:interface:
Excel.ShapeFill:class:

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this randomly a class...

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ShapeFill for PPT and Word are also classes...

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, but I find the object model distinction between class and interface arbitrary, especially since everything in Scripts is an interface.

@AlexJerabek AlexJerabek merged commit 9c32954 into main May 4, 2026
3 checks passed
@AlexJerabek AlexJerabek deleted the AlexJ-SampleMapping-4-14 branch May 4, 2026 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants