Cmdlet
Add-OfficeVisioContainer
Creates an OfficeIMO-authored Visio-native container around existing shapes.
Syntax
Add-OfficeVisioContainer [-ContainerStyle <Int32>] [-FillColor <String>] [-HeadingHeight <Double>] [-HeadingStyle <Int32>] -Id <String> [[-InputObject] <Object>] [-LineColor <String>] [-LineWeight <Double>] [-Locked] [-Margin <Double>] [-NoAutoResize] [-NoHighlight] [-NoRibbon] [-Page <VisioPage>] [-PassThru] [-ShapeId <String[]>] [-Text <String>] [<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Group related shapes in a container.
OfficeVisio -Path .\Architecture.vsdx {
VisioRectangle -Key api -Text 'API' -X 2 -Y 4
VisioRectangle -Key worker -Text 'Worker' -X 4 -Y 4
VisioContainer -Id app -Text 'Application tier' -ShapeId api,worker -FillColor '#F8FAFC'
}Creates a native Visio container around previously keyed shapes.
Parameters
- -ContainerStyle Int32
- Native Visio container gallery identifier. Zero selects the default/no explicit gallery style.
- -FillColor String
- Container fill color.
- -HeadingHeight Double
- Additional heading height in page units.
- -HeadingStyle Int32
- Native Visio heading gallery identifier. Zero disables the heading style.
- -Id String
- Container shape identifier.
- -InputObject Object
- Shapes, shape selections, or shape keys/ids to include in the container.
- -LineColor String
- Container line color.
- -LineWeight Double
- Container line weight in inches.
- -Locked SwitchParameter
- Lock the generated container.
- -Margin Double
- Outer margin around member shapes in page units.
- -NoAutoResize SwitchParameter
- Disable Visio container auto resize metadata.
- -NoHighlight SwitchParameter
- Suppress Visio selection highlighting metadata.
- -NoRibbon SwitchParameter
- Suppress Visio container ribbon metadata.
- -Page VisioPage
- Page that owns the member shapes. Optional inside OfficeVisio/VisioPage DSL scopes.
- -PassThru SwitchParameter
- Emit the object created or changed by the command.
- -ShapeId String[]
- Shape keys or ids to include in the container.
- -Text String
- Container heading text.
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.