Get-VisioPage
Enumerate all pages from the active document
$pages = Get-VisioPage
Enumerate all pages from the active document that have a specific name
$pages = Get-VisioPage "Page-1"
Enumerate all pages from the active document using wildcards
$pages = Get-VisioPage "*foo"
Get the active page
$page = Get-VisioPage -ActivePage
Set the active page
# By name
Set-VisioPage -Name "Mypage"
# Using a reference to a specific page
Set-VisioPage -Page $p
Set a new active page relative to the current active page
Set-VisioPage -Direction First
Set-VisioPage -Direction Last
Set-VisioPage -Direction Next
Set-VisioPage -Direction Previous
Last updated