PageSheet property
PageSheet property
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
Returns the page sheet of a page or master.
Version added
4.0
Syntax
|
|
objRet |
A Shape object that represents a page sheet. |
object |
Required. An expression that returns a Master or Page object. |
Remarks
Every page and master contains a tree of Shape objects. Constants representing shape types are prefixed with visType and are declared by the Visio type library.
In the tree of shapes of a master or page, there is exactly one shape of type visTypePage. This shape is always the root shape in the tree, and the PageSheet property returns this shape.
The page sheet contains important settings for the page or master such as its size and scale. It also contains the Layers section that defines the layers for that page or master.
An alternative way to obtain a page's or master's page shape is to use the following code:
shpObj = pageOrMasterObj.Shapes("ThePage")