Change fill pattern of a shape (W/P)

Modified on Mon, 5 Oct at 1:53 PM

This functionality is similar to our change fill color feature where we can change the fill color of selected shape(s). With this feature, we can define both background color, foreground color and the pattern that should be applied to the shape.

CMD

<Cmd case="BaseExtensions:change-fill-pattern"/>

Parameters

pattern

Define the pattern that should be applied to the shape, using a MsoPatternType enumeration from this link.

background

Define the color of the background of the pattern. This can either be defined as a RGB color or as an accent color. When using RGB, separate by comma and exclude whitespace, e.g. color="0,0,0".

For accent colors, we support the following options:

  • Accent1
  • Accent2
  • Accent3
  • Accent4
  • Accent5
  • Accent6
  • Light1
  • Light2
  • Dark1
  • Dark2

foreground

Define the foreground color of the pattern. Here, we support the same options as for the background parameter.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article