API Reference

Cmdlet

Add-OfficeVisioPage

Aliases: VisioPage
Namespace PSWriteOffice
Aliases
VisioPage
Inputs
OfficeIMO.Visio.VisioDocument
Outputs
OfficeIMO.Visio.VisioPage

Adds a page to a Visio document and optionally executes nested DSL content.

Remarks

Adds a page to a Visio document and optionally executes nested DSL content.

Examples

Authored help example

Add a second diagram page.

PS>


New-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.

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.

Syntax

Add-OfficeVisioPage [-Content <ScriptBlock>] [-Document <VisioDocument>] [-Height <Double>] -Name <String> [-Unit <Inches|Centimeters|Millimeters>] [-Width <Double>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Content ScriptBlock optionalposition: 1pipeline: False
Nested DSL content executed within this page scope.
Document VisioDocument optionalposition: namedpipeline: True (ByValue)
Target Visio document. Optional inside New-OfficeVisio.
Height Double optionalposition: namedpipeline: False
Page height.
Name String requiredposition: 0pipeline: False
Page name.
Unit VisioMeasurementUnit optionalposition: namedpipeline: Falsevalues: 3
Measurement unit for width and height.
Possible values: Inches, Centimeters, Millimeters
Width Double optionalposition: namedpipeline: False
Page width.

Outputs

OfficeIMO.Visio.VisioPage