API Reference
Cmdlet
Add-OfficeVisioContainer
Creates an OfficeIMO-authored Visio-native container around existing shapes.
Remarks
Creates an OfficeIMO-authored Visio-native container around existing shapes.
Examples
Group related shapes in a container.
PS>
New-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.
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-OfficeVisioContainer [-ContainerStyle <Nullable`1>] [-FillColor <String>] [-HeadingHeight <Nullable`1>] [-HeadingStyle <Nullable`1>] -Id <String> [-InputObject <Object>] [-LineColor <String>] [-LineWeight <Nullable`1>] [-Locked] [-Margin <Nullable`1>] [-NoAutoResize] [-NoHighlight] [-NoRibbon] [-Page <VisioPage>] [-ShapeId <String[]>] [-Text <String>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- ContainerStyle Nullable`1
- Native Visio container style identifier.
- FillColor String
- Container fill color.
- HeadingHeight Nullable`1
- Additional heading height in page units.
- HeadingStyle Nullable`1
- Native Visio heading style identifier.
- 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 Nullable`1
- Container line weight in inches.
- Locked SwitchParameter
- Lock the generated container.
- Margin Nullable`1
- 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 New-OfficeVisio/VisioPage DSL scopes.
- ShapeId String[]
- Shape keys or ids to include in the container.
- Text String
- Container heading text.
Outputs
OfficeIMO.Visio.VisioShape