Cmdlet
Add-OfficeVisioConnector
Adds a connector between two Visio shapes.
Syntax
Add-OfficeVisioConnector
[-BeginArrow <Arrow| Triangle>]
[-EndArrow <Arrow| Triangle>]
-From <String>
[-FromSide <Auto| Left| Right| Bottom| Top>]
[-Kind <Straight| RightAngle| Curved| Dynamic>]
[-Label <String>]
[-LineColor <String>]
[-LinePattern <Int32>]
[-LineWeight <Double>]
[-Page <VisioPage>]
[-PassThru]
-To <String>
[-ToSide <Auto| Left| Right| Bottom| Top>]
[<CommonParameters>]#Parameter set:
ByKeyAdd-OfficeVisioConnector
[-BeginArrow <Arrow| Triangle>]
[-EndArrow <Arrow| Triangle>]
-FromShape <VisioShape>
[-FromSide <Auto| Left| Right| Bottom| Top>]
[-Kind <Straight| RightAngle| Curved| Dynamic>]
[-Label <String>]
[-LineColor <String>]
[-LinePattern <Int32>]
[-LineWeight <Double>]
[-Page <VisioPage>]
[-PassThru]
-ToShape <VisioShape>
[-ToSide <Auto| Left| Right| Bottom| Top>]
[<CommonParameters>]#Parameter set:
ByShapeExamples
Connect two keyed shapes.
OfficeVisio -Path .\Flow.vsdx {
VisioRectangle -Key source -Text 'Source' -X 1 -Y 4
VisioRectangle -Key target -Text 'Target' -X 4 -Y 4
VisioConnector -From source -To target -Kind RightAngle -EndArrow Triangle -Label 'sync'
}Adds a routed connector between shapes registered in the current DSL scope.
Parameters
- -BeginArrow EndArrow
- Begin arrow style.
- Possible values:
Arrow,Triangle - -EndArrow EndArrow
- End arrow style.
- Possible values:
Arrow,Triangle - -From String
- Source shape key, id, or name.
- -FromSide VisioSide
- Preferred source shape side.
- Possible values:
Auto,Left,Right,Bottom,Top - -Kind ConnectorKind
- Connector kind.
- Possible values:
Straight,RightAngle,Curved,Dynamic - -Label String
- Connector label.
- -LineColor String
- 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 Double
- Line weight.
- -Page VisioPage
- Target page. Optional inside VisioPage or OfficeVisio.
- -PassThru SwitchParameter
- Emit the object created or changed by the command.
- -To String
- Target shape key, id, or name.
- -ToSide VisioSide
- Preferred target shape side.
- Possible values:
Auto,Left,Right,Bottom,Top - -FromShape VisioShape
- Source shape object.
- -ToShape VisioShape
- Target shape object.
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.