[Word.BorderCollection] can not set some property to None or Width (outsideBorderWidth, insideBorderWidth, outsideBorderType, insideBorderType) #5219
Labels
Area: Word
Issue related to Word add-ins
Status: in backlog
Issue is being tracked in the backlog but timeline for resolution is unknown
Provide required information needed to triage your issue
Your Environment
Expected behavior
You should be able to set all possible values for Word.BorderCollection.
Current behavior
An exception is thrown: InvalidArgument.
Steps to reproduce
targetBorders.outsideBorderWidth = 'Mixed';
Link to live example(s)
Script Lab:
scriptlab.txt
Context
RetrieveStylesFromBase64
API to get all styles and then apply updates to the current document. However, borders cannot be set to None or Mixed for certain properties.Useful logs
The text was updated successfully, but these errors were encountered: