Selection.SetQuickStyle method (Visio)

Sets the quick style of the specified selection.

Syntax

expression.SetQuickStyle (lineMatrix, fillMatrix, effectsMatrix, fontMatrix, lineColor, fillColor, shadowColor, fontColor)

expression A variable that represents a Selection object.

Parameters

Name Required/Optional Data type Description
lineMatrix Required VISQUICKSTYLEMATRIXINDICES Specifies the shape style index that determines the line-formatting properties (for example, dash type or weight) to retrieve from the active theme and variant.
fillMatrix Required VISQUICKSTYLEMATRIXINDICES Specifies the shape style index that determines the fill-formatting properties (for example, fill type or gradient stops) to retrieve from the active theme and variant.
effectsMatrix Required VISQUICKSTYLEMATRIXINDICES Specifies the shape style index that determines the effects-formatting properties (for example, shadows or bevels) to retrieve from the active theme and variant.
fontMatrix Required VISQUICKSTYLEMATRIXINDICES Specifies the shape style index that determines the font-formatting properties (for example, font style) to retrieve from the active theme and variant.
lineColor Required VISQUICKSTYLECOLORS Specifies the color index that determines the line color to retrieve from the active theme and variant to use in line formatting.
fillColor Required VISQUICKSTYLECOLORS Specifies the color index that determines the fill color to retrieve from the active theme and variant to use in fill formatting.
shadowColor Required VISQUICKSTYLECOLORS Specifies the color index that determines the shadow color to retrieve from the active theme and variant to use in shadows.
fontColor Required VISQUICKSTYLECOLORS Specifies the color index that determines the font color to retrieve from the active theme and variant to use in shape text.

Return value

VOID

Remarks

Calling the SetQuickStyle method corresponds to setting a quick style in the Shape Styles gallery on the Home tab of the ribbon.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.