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:
...\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.
Comments
0 comments
Article is closed for comments.