Change color of line, fill and font in named shape (W/P/E)

Modified on Mon, 5 Oct at 1:53 PM

With BaseExtensions, we are able to change line color, fill color and font color of selected shapes by their names. In this way, we are able to target shapes, which are placed in the header. We can also select shapes in slides in the master.

These features are based on our existing commands for changing color of line, fill and font. Read more in this article.

Module is located here:

Code
...\ModuleLibrary\BaseExtensions\01_nocontext_Tools\57_WPE_changeColorNamedShape.xml

CMD: <Cmd case="BaseExtensions:change-line-color-named-shape"/>

Description: Changes the line color of named shape.

CMD: <Cmd case="BaseExtensions:change-fill-color-named-shape"/>

Description: Changes the fill color of named shape.

CMD: <Cmd case="BaseExtensions:change-font-color-named-shape"/>

Description: Changes the font color of text in named shape.

Parameters

name

Define name of named shape to be targeted.

color

Define color with RGB value. Be sure to use a comma and not a dot, e.g.: color="100, 100, 100".
This also supports ARGB, where the alpha value defines the transparency of the shape, e.g.:color="73, 100, 100, 100"

checkGroup

Define whether the command should be able to change color of grouped shapes with true or false.

selectInMaster

If this parameter is defined to be true, it selects the named shape(s) in the slide master. If it is set to be false, it selects the named shape(s) in the normal slides.

transparency

This parameter can change the transparency of a shape, without changing the rest of the shapes RGB values. Use values from 0 to 255, where 0 is invisible and 255 is solid. For example: transparency="102"which represents a 60% transparency. To calculate the value inserted you can use the following calculation: 255*(1-0,6)=102 where 0,6 represents the 60% transparency that is aimed for.

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