Table of contents
TOC
Collapse the table of content
Expand the table of content

Selection.SetQuickStyle Method (Visio)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

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

NameRequired/OptionalData typeDescription
lineMatrixRequiredVISQUICKSTYLEMATRIXINDICESSpecifies the shape style index that determines the line-formatting properties (for example, dash type or weight) to retrieve from the active theme and variant.
fillMatrixRequiredVISQUICKSTYLEMATRIXINDICESSpecifies 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.
effectsMatrixRequiredVISQUICKSTYLEMATRIXINDICESSpecifies the shape style index that determines the effects-formatting properties (for example, shadows or bevels) to retrieve from the active theme and variant.
fontMatrixRequiredVISQUICKSTYLEMATRIXINDICESSpecifies the shape style index that determines the font-formatting properties (for example, font style) to retrieve from the active theme and variant.
lineColorRequiredVISQUICKSTYLECOLORSSpecifies the color index that determines the line color to retrieve from the active theme and variant to use in line formatting.
fillColorRequiredVISQUICKSTYLECOLORSSpecifies the color index that determines the fill color to retrieve from the active theme and variant to use in fill formatting.
shadowColorRequiredVISQUICKSTYLECOLORSSpecifies the color index that determines the shadow color to retrieve from the active theme and variant to use in shadows.
fontColorRequiredVISQUICKSTYLECOLORSSpecifies 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.

See also

Concepts

Selection Object

© 2017 Microsoft