Cmdlet
Add-OfficeVisioStencilShape
Adds a stencil shape to the current Visio page.
Syntax
Add-OfficeVisioStencilShape
[-Alignment <OfficeAlignment>]
[-Angle <Double>]
[-Bold]
[-Catalog <Object>]
[-Color <OfficeColor>]
[-FillColor <OfficeColor>]
[-FillPattern <Int32>]
[-Font <String>]
[-Height <OfficeLength>]
[-Italic]
[-Key <String>]
[-LineColor <OfficeColor>]
[-LinePattern <Int32>]
[-LineWeight <OfficeLength>]
[-Name <String>]
[-NameU <String>]
[-Page <VisioPage>]
[-PassThru]
[-Size <OfficeLength>]
[-Stencil] <String>
[-Strikethrough]
[[-Text] <String>]
[-Underline <Single| Double>]
[-Width <OfficeLength>]
[-X <OfficeLength>]
[-Y <OfficeLength>]
[<CommonParameters>]#Parameter set:
CatalogAdd-OfficeVisioStencilShape
[-Alignment <OfficeAlignment>]
[-Angle <Double>]
[-Bold]
-BuiltIn <OfficeVisioBuiltInStencilCatalog>
[-Color <OfficeColor>]
[-FillColor <OfficeColor>]
[-FillPattern <Int32>]
[-Font <String>]
[-Height <OfficeLength>]
[-Italic]
[-Key <String>]
[-LineColor <OfficeColor>]
[-LinePattern <Int32>]
[-LineWeight <OfficeLength>]
[-Name <String>]
[-NameU <String>]
[-Page <VisioPage>]
[-PassThru]
[-Size <OfficeLength>]
[-Stencil] <String>
[-Strikethrough]
[[-Text] <String>]
[-Underline <Single| Double>]
[-Width <OfficeLength>]
[-X <OfficeLength>]
[-Y <OfficeLength>]
[<CommonParameters>]#Parameter set:
BuiltInExamples
Add built-in flowchart stencil shapes.
OfficeVisio -Path .\StencilFlow.vsdx -UseMastersByDefault {
VisioStencilImport -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.
Parameters
- -Alignment OfficeAlignment
- Whole-shape horizontal text alignment.
- Possible values:
Left,Center,Right,Justify,Start,End - -Angle Double
- Shape angle in degrees.
- -Bold SwitchParameter
- Apply bold text; explicit false clears it.
- -Catalog Object
- A stencil catalog object or a name registered in the current Visio block.
- -Color OfficeColor
- Text color, including CSS names and theme roles.
- -FillColor OfficeColor
- Fill color name or hex value.
- -FillPattern Int32
- Native Visio fill-pattern index: 0 has no fill, 1 is solid, and 2 through 40 select built-in patterns.
- -Font String
- Font family for the shape's text.
- -Height OfficeLength
- Optional shape height. Omit to use the stencil default height.
- -Italic SwitchParameter
- Apply italic text; explicit false clears it.
- -Key String
- DSL key used by connector commands.
- -LineColor OfficeColor
- Line color name or hex value.
- -LinePattern Int32
- Native Visio line-pattern index: 0 hides the line, 1 is solid, and 2 through 23 select built-in patterns.
- -LineWeight OfficeLength
- Line weight.
- -Name String
- Optional shape name.
- -NameU String
- Optional universal shape name.
- -Page VisioPage
- Target page. Optional inside VisioPage or OfficeVisio.
- -PassThru SwitchParameter
- Emit the object created or changed by the command.
- -Size OfficeLength
- Font size; a number means points.
- -Stencil String
- Stencil id, name, master name, keyword, alias, or tag.
- -Strikethrough SwitchParameter
- Apply one strikethrough line; explicit false clears it.
- -Text String
- Text placed inside the shape. Omit to use the stencil display name.
- -Underline OfficeTextDecorationStyle
- Native Visio underline variant.
- Possible values:
Single,Double - -Width OfficeLength
- Optional shape width. Omit to use the stencil default width.
- -X OfficeLength
- X coordinate of the stencil shape center.
- -Y OfficeLength
- Y coordinate of the stencil shape center.
- -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
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.