ShapeRange.SetShapesDefaultProperties Method
Publisher Developer Reference |
Applies the formatting for the specified shape or shape range to the default shape. Shapes created after this method has been used will have this formatting applied to them by default.
Syntax
expression.SetShapesDefaultProperties
expression A variable that represents a ShapeRange object.
Return Value
Nothing
Remarks
The SetShapesDefaultProperties method stores two different sets of default properties, one for a Shape object's AutoShapeType Property, and another for a TextFrame object. In other words, if this method is called on an AutoShape, the default formatting of that object will apply only to new AutoShapes, and will not apply to new text boxes. If this method is called on a text box, the default formatting of that object will apply only to new text boxes, and will not apply to new AutoShapes.
Example
This example adds a rectangle to the active publication, formats the rectangle's fill, applies the rectangle's formatting to the default shape, and then adds another smaller rectangle to the document. The second rectangle has the same fill as the first one.
Visual Basic for Applications |
---|
|
See Also