Cmdlet
Add-OfficeVisioConnector
Adds a connector between two Visio shapes.
Syntax
Add-OfficeVisioConnector
[-BeginArrow <Arrow| Triangle>]
[-EndArrow <Arrow| Triangle>]
-From <Object>
[-FromSide <Auto| Left| Right| Bottom| Top>]
[-Kind <Straight| RightAngle| Curved| Dynamic>]
[-Label <String>]
[-LineColor <OfficeColor>]
[-LinePattern <Int32>]
[-LineWeight <OfficeLength>]
[-Page <VisioPage>]
[-PassThru]
-To <Object>
[-ToSide <Auto| Left| Right| Bottom| Top>]
[<CommonParameters>]#Parameter set:
PageExamples
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 Object
- Source shape object or a registered 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 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.
- -Page VisioPage
- Target page. Optional inside VisioPage or OfficeVisio.
- -PassThru SwitchParameter
- Emit the object created or changed by the command.
- -To Object
- Target shape object or a registered key, id or name.
- -ToSide VisioSide
- Preferred target shape side.
- Possible values:
Auto,Left,Right,Bottom,Top
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.