Modify the Gradient of a Visio Shape

Modify the Gradient Fill Programming Sample

Shape class offers Fill property which allows developers to retrieve a GradientFill object. The GradientFill class holds the gradient data of a Visio Shape. Developers can set all its available properties as well as retrieve a gradient stop by index to set the color and position properties.