CenterDrawing method

Microsoft Visio Developer Reference

CenterDrawing method

See also   Example   

Centers a page's, master's, or group's shapes with respect to the extent of the page, master, or group.

Version added

4.0

Syntax

object.CenterDrawing

object

Required. An expression that returns a Page, Master, or Shape object that contains the shapes to center.

Remarks

Centering shapes does not change their position relative to each other.