PatternFlags property

Microsoft Visio Developer Reference

PatternFlags property

See also   Example   

Determines whether a master behaves as a custom pattern.

Version added

5.0

Syntax

intRet = object.PatternFlags
object.PatternFlags = intExpression

intRet

Integer. The current value.

object

Required. An expression that returns a Master object.

intExpression

Required Integer. The new value.

Remarks

Visio allows a master to be used as a custom line pattern, line end, or fill pattern.

The PatternFlags property determines whether you can use a master as a pattern (non-zero); whether it is a line, fill, or line end pattern; and which pattern mode to use when applying it to shapes.

If you can use the PatternFlags property as a pattern (non-zero), the property can include a combination of the following bits.

Constant

Value

Description

visMasIsLinePat

&H1

Line pattern

visMasIsLineEnd

&H2

Line end pattern

visMasIsFillPat

&H4

Fill pattern

If visMasIsLinePat is selected, the pattern mode should be one of the following values.

Constant

Value

visMasLPTileDeform

&H0

visMasLPTile

&H10

visMasLPStretch

&H20

visMasLPAnnotate

&H30

In addition, visMasLPScale (&H40) can optionally be included in the PatternFlag property value.

If visMasIsLineEnd is selected, the pattern mode should be one of the following values.

Constant

Value

visMasLEDefault

&H0

visMasLEUpright

&H100

In addition, visMasLEScale (&H400) can optionally be included in the PatternFlag property value.

If visMasIsFillPat is selected, the pattern mode should be one of the following values.

Constant

Value

visMasFPTile

&H0

visMasFPCenter

&H1000

visMasFPStretch

&H2000

In addition, visMasFPScale (&H4000) can optionally be included in the PatternFlag property value.