API Reference

Cmdlet

Add-OfficeVisioDiamond

Aliases: VisioDiamond
Namespace PSWriteOffice
Aliases
VisioDiamond
Inputs
OfficeIMO.Visio.VisioPage
Outputs
OfficeIMO.Visio.VisioShape

Adds a diamond shape to the current Visio page.

Remarks

Adds a diamond shape to the current Visio page.

Examples

Authored help example

Add a decision shape.

PS>


New-OfficeVisio -Path .\Flow.vsdx {
                VisioDiamond -Key review -Text 'Approved?' -X 4 -Y 4 -Width 1.2 -Height 1 -FillColor '#FEF3C7'
            }
        

Adds a decision diamond to the active Visio 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-OfficeVisioDiamond [-FillColor <String>] [-Height <Double>] [-Key <String>] [-LineColor <String>] [-LineWeight <Nullable`1>] [-Name <String>] [-Page <VisioPage>] [-Text <String>] [-Unit <Inches|Centimeters|Millimeters>] [-Width <Double>] [-X <Double>] [-Y <Double>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

FillColor String optionalposition: namedpipeline: False
Fill color name or hex value.
Height Double optionalposition: namedpipeline: False
Shape height.
Key String optionalposition: namedpipeline: False
DSL key used by connector commands.
LineColor String optionalposition: namedpipeline: False
Line color name or hex value.
LineWeight Nullable`1 optionalposition: namedpipeline: False
Line weight.
Name String optionalposition: namedpipeline: False
Optional shape name.
Page VisioPage optionalposition: namedpipeline: True (ByValue)
Target page. Optional inside VisioPage or New-OfficeVisio.
Text String optionalposition: 0pipeline: False
Text placed inside the shape.
Unit VisioMeasurementUnit optionalposition: namedpipeline: Falsevalues: 3
Measurement unit for coordinates and dimensions.
Possible values: Inches, Centimeters, Millimeters
Width Double optionalposition: namedpipeline: False
Shape width.
X Double optionalposition: namedpipeline: False
X coordinate of the shape origin.
Y Double optionalposition: namedpipeline: False
Y coordinate of the shape origin.

Outputs

OfficeIMO.Visio.VisioShape