Cmdlet
Add-OfficeVisioPage
Adds a page to a Visio document and optionally executes nested DSL content.
Syntax
Add-OfficeVisioPage
[[-Content] <ScriptBlock>]
[-DisplayUnit <Inches| Centimeters| Millimeters>]
[-Document <VisioDocument>]
[-Height <OfficeLength>]
[-Name] <String>
[-PassThru]
[-Width <OfficeLength>]
[<CommonParameters>]#Parameter set:
DocumentExamples
Add a second diagram page.
New-OfficeVisio -Path .\Workbook.vsdx {
VisioPage -Name 'Architecture' -Width 11in -Height 8.5in {
VisioRectangle -Key api -Text 'API' -X 2in -Y 4in
}
}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.
- -DisplayUnit VisioMeasurementUnit
- Measurement unit displayed by Visio, independent of geometry input units.
- Possible values:
Inches,Centimeters,Millimeters - -Document VisioDocument
- Target Visio document. Optional inside New-OfficeVisio.
- -Height OfficeLength
- Page height.
- -Name String
- Page name.
- -PassThru SwitchParameter
- Emit the object created or changed by the command.
- -Width OfficeLength
- 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.