2.2.7.1 Fill Properties

A shape, master, or style in a web drawing can possess a variety of properties relating to the visual appearance of fills in closed geometry paths. A collection of properties defining the visual appearance of a shape, master, or style’s fill is called a fill property. Each shape, master, or style has one fill property.

Fill properties allow a shape, master, or style to take on a variety of fill styles, including full transparency, solid colors, gradients, and patterns. These properties can be combined with a line property and an effect property.

The fill properties of shapes in a web drawing are specified in the Page XML Part. Each fill property is specified in a ShapeSheet_Type child element of the Shapes_Type descendant element of the PageContents element in a part.

The fill properties of masters in a web drawing are specified in the Master XML Part. Each fill property is specified in a ShapeSheet_Type child element of the Shapes_Type descendant element of the MasterContents element in a part.

The fill properties of styles in a web drawing are specified in the Document XML Part. Each fill property is specified in a StyleSheet_Type child element of the StyleSheets_Type child element of the VisioDocument element in a part.

Fill property information in shapes, masters, and styles is specified by the FillForegnd, FillForegndTrans, FillBkgnd, FillBkgndTrans, FillPattern, FillGradientDir, FillGradientAngle, FillGradientEnabled, RotateGradientWithShape, and UseGroupGradientCell_Type elements, and the Cell_Type elements belonging to the FillGradient Section_Type.