API Reference
Cmdlet
Add-OfficeVisioStencilShape
Adds a stencil shape to the current Visio page.
Remarks
Adds a stencil shape to the current Visio page.
Examples
Add built-in flowchart stencil shapes.
PS>
New-OfficeVisio -Path .\StencilFlow.vsdx -UseMastersByDefault {
Import-OfficeVisioStencil -BuiltIn Flowchart -Name Flow -Default
VisioStencil -Catalog Flow -Stencil process -Key intake -Text 'Intake' -X 1.5 -Y 4
}
Registers a built-in catalog and places a stencil shape on the active page.
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-OfficeVisioStencilShape [-Angle <Nullable`1>] [-Catalog <String>] [-FillColor <String>] [-FillPattern <Nullable`1>] [-Height <Nullable`1>] [-Key <String>] [-LineColor <String>] [-LinePattern <Nullable`1>] [-LineWeight <Nullable`1>] [-NameU <String>] [-Page <VisioPage>] [-ShapeName <String>] -Stencil <String> [-Text <String>] [-Width <Nullable`1>] [-X <Double>] [-Y <Double>] [<CommonParameters>]#Parameter set:
CatalogNameParameters
- Angle Nullable`1
- Shape angle in radians.
- Catalog String
- Catalog previously registered in the active Visio DSL scope.
- FillColor String
- Fill color name or hex value.
- FillPattern Nullable`1
- Fill pattern.
- Height Nullable`1
- Optional shape height. Omit to use the stencil default height.
- Key String
- DSL key used by connector commands.
- LineColor String
- Line color name or hex value.
- LinePattern Nullable`1
- Line pattern.
- LineWeight Nullable`1
- Line weight.
- NameU String
- Optional universal shape name.
- Page VisioPage
- Target page. Optional inside VisioPage or New-OfficeVisio.
- ShapeName String
- Optional shape name.
- Stencil String
- Stencil id, name, master name, keyword, alias, or tag.
- Text String
- Text placed inside the shape. Omit to use the stencil display name.
- Width Nullable`1
- Optional shape width. Omit to use the stencil default width.
- X Double
- X coordinate of the stencil shape center.
- Y Double
- Y coordinate of the stencil shape center.
Outputs
OfficeIMO.Visio.VisioShape
Add-OfficeVisioStencilShape [-Angle <Nullable`1>] -CatalogObject <VisioStencilCatalog> [-FillColor <String>] [-FillPattern <Nullable`1>] [-Height <Nullable`1>] [-Key <String>] [-LineColor <String>] [-LinePattern <Nullable`1>] [-LineWeight <Nullable`1>] [-NameU <String>] [-Page <VisioPage>] [-ShapeName <String>] -Stencil <String> [-Text <String>] [-Width <Nullable`1>] [-X <Double>] [-Y <Double>] [<CommonParameters>]#Parameter set:
CatalogObjectParameters
- Angle Nullable`1
- Shape angle in radians.
- CatalogObject VisioStencilCatalog
- Catalog object containing the stencil shape.
- FillColor String
- Fill color name or hex value.
- FillPattern Nullable`1
- Fill pattern.
- Height Nullable`1
- Optional shape height. Omit to use the stencil default height.
- Key String
- DSL key used by connector commands.
- LineColor String
- Line color name or hex value.
- LinePattern Nullable`1
- Line pattern.
- LineWeight Nullable`1
- Line weight.
- NameU String
- Optional universal shape name.
- Page VisioPage
- Target page. Optional inside VisioPage or New-OfficeVisio.
- ShapeName String
- Optional shape name.
- Stencil String
- Stencil id, name, master name, keyword, alias, or tag.
- Text String
- Text placed inside the shape. Omit to use the stencil display name.
- Width Nullable`1
- Optional shape width. Omit to use the stencil default width.
- X Double
- X coordinate of the stencil shape center.
- Y Double
- Y coordinate of the stencil shape center.
Outputs
OfficeIMO.Visio.VisioShape
Add-OfficeVisioStencilShape [-Angle <Nullable`1>] [-BuiltIn <All>] [-FillColor <String>] [-FillPattern <Nullable`1>] [-Height <Nullable`1>] [-Key <String>] [-LineColor <String>] [-LinePattern <Nullable`1>] [-LineWeight <Nullable`1>] [-NameU <String>] [-Page <VisioPage>] [-ShapeName <String>] -Stencil <String> [-Text <String>] [-Width <Nullable`1>] [-X <Double>] [-Y <Double>] [<CommonParameters>]#Parameter set:
BuiltInParameters
- Angle Nullable`1
- Shape angle in radians.
- BuiltIn OfficeVisioBuiltInStencilCatalog
- Built-in OfficeIMO stencil catalog containing the shape.
- Possible values:
All,BasicShapes,Flowchart,BlockDiagram,Architecture,Network,Infrastructure,Cloud,SecurityIdentity,ContainersKubernetes,DataPlatform,CollaborationBusiness,Swimlane,OrgChart,Timeline,Sequence - FillColor String
- Fill color name or hex value.
- FillPattern Nullable`1
- Fill pattern.
- Height Nullable`1
- Optional shape height. Omit to use the stencil default height.
- Key String
- DSL key used by connector commands.
- LineColor String
- Line color name or hex value.
- LinePattern Nullable`1
- Line pattern.
- LineWeight Nullable`1
- Line weight.
- NameU String
- Optional universal shape name.
- Page VisioPage
- Target page. Optional inside VisioPage or New-OfficeVisio.
- ShapeName String
- Optional shape name.
- Stencil String
- Stencil id, name, master name, keyword, alias, or tag.
- Text String
- Text placed inside the shape. Omit to use the stencil display name.
- Width Nullable`1
- Optional shape width. Omit to use the stencil default width.
- X Double
- X coordinate of the stencil shape center.
- Y Double
- Y coordinate of the stencil shape center.
Outputs
OfficeIMO.Visio.VisioShape