API Reference
Cmdlet
Add-OfficeVisioRectangle
Adds a rectangle shape to the current Visio page.
Remarks
Adds a rectangle shape to the current Visio page.
Examples
Add a labeled process box.
PS>
New-OfficeVisio -Path .\Flow.vsdx {
VisioRectangle -Key intake -Text 'Intake' -X 1.5 -Y 4 -Width 1.7 -Height 0.8 -FillColor '#E0F2FE'
}
Adds a rectangle and registers a key for later connector commands.
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-OfficeVisioRectangle [-Angle <Nullable`1>] [-FillColor <String>] [-FillPattern <Nullable`1>] [-Height <Double>] [-Key <String>] [-LineColor <String>] [-LinePattern <Nullable`1>] [-LineWeight <Nullable`1>] [-Name <String>] [-NameU <String>] [-Page <VisioPage>] [-Text <String>] [-Unit <Inches|Centimeters|Millimeters>] [-Width <Double>] [-X <Double>] [-Y <Double>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- Angle Nullable`1
- Shape angle in radians.
- FillColor String
- Fill color name or hex value.
- FillPattern Nullable`1
- Fill pattern.
- Height Double
- Shape 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.
- Name String
- Optional shape name.
- NameU String
- Optional universal shape name.
- Page VisioPage
- Target page. Optional inside VisioPage or New-OfficeVisio.
- Text String
- Text placed inside the shape.
- Unit VisioMeasurementUnit
- Measurement unit for coordinates and dimensions.
- Possible values:
Inches,Centimeters,Millimeters - Width Double
- Shape width.
- X Double
- X coordinate of the shape origin.
- Y Double
- Y coordinate of the shape origin.
Outputs
OfficeIMO.Visio.VisioShape