Cmdlet
Add-OfficeVisioPage
Adds a page to a Visio document and optionally executes nested DSL content.
Syntax
Add-OfficeVisioPage [[-Content] <ScriptBlock>] [-Document <VisioDocument>] [-Height <Double>] [-Name] <String> [-PassThru] [-Unit <Inches|Centimeters|Millimeters>] [-Width <Double>] [<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Add a second diagram page.
OfficeVisio -Path .\Workbook.vsdx {
VisioPage -Name 'Architecture' {
VisioRectangle -Key api -Text 'API' -X 2 -Y 4
}
}Adds a named page and executes the nested shape DSL inside that page scope.
Parameters
- -Content ScriptBlock
- Nested DSL content executed within this page scope.
- -Document VisioDocument
- Target Visio document. Optional inside OfficeVisio.
- -Height Double
- Page height.
- -Name String
- Page name.
- -PassThru SwitchParameter
- Emit the object created or changed by the command.
- -Unit VisioMeasurementUnit
- Measurement unit for width and height.
- Possible values:
Inches,Centimeters,Millimeters - -Width Double
- Page width.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.