Collapse the table of content
Expand the table of content
Expand Minimize

Shape.SetQuickStyle Method (Visio)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Sets the quick style of the specified shape.

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

expression A variable that represents a Shape 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 font-formatting properties (for example, font style) 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.

Name

Required/Optional

Data type

Description

Return value

VOID

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

Concepts

Other resources

Show:
© 2016 Microsoft