API Reference
Cmdlet
Add-OfficeVisioConnector
Adds a connector between two Visio shapes.
Remarks
Adds a connector between two Visio shapes.
Examples
Connect two keyed shapes.
PS>
New-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.
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-OfficeVisioConnector [-BeginArrow <Nullable`1>] [-EndArrow <Nullable`1>] -From <String> [-FromSide <Auto|Left|Right|Bottom|Top>] [-Kind <Straight|RightAngle|Curved|Dynamic>] [-Label <String>] [-LineColor <String>] [-LinePattern <Nullable`1>] [-LineWeight <Nullable`1>] [-Page <VisioPage>] -To <String> [-ToSide <Auto|Left|Right|Bottom|Top>] [<CommonParameters>]#Parameter set:
ByKeyParameters
- BeginArrow Nullable`1
- Begin arrow style.
- EndArrow Nullable`1
- End arrow style.
- 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 Nullable`1
- Line pattern.
- LineWeight Nullable`1
- Line weight.
- Page VisioPage
- Target page. Optional inside VisioPage or New-OfficeVisio.
- To String
- Target shape key, id, or name.
- ToSide VisioSide
- Preferred target shape side.
- Possible values:
Auto,Left,Right,Bottom,Top
Outputs
OfficeIMO.Visio.VisioConnector
Add-OfficeVisioConnector [-BeginArrow <Nullable`1>] [-EndArrow <Nullable`1>] -FromShape <VisioShape> [-FromSide <Auto|Left|Right|Bottom|Top>] [-Kind <Straight|RightAngle|Curved|Dynamic>] [-Label <String>] [-LineColor <String>] [-LinePattern <Nullable`1>] [-LineWeight <Nullable`1>] [-Page <VisioPage>] -ToShape <VisioShape> [-ToSide <Auto|Left|Right|Bottom|Top>] [<CommonParameters>]#Parameter set:
ByShapeParameters
- BeginArrow Nullable`1
- Begin arrow style.
- EndArrow Nullable`1
- End arrow style.
- FromShape VisioShape
- Source shape object.
- 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 Nullable`1
- Line pattern.
- LineWeight Nullable`1
- Line weight.
- Page VisioPage
- Target page. Optional inside VisioPage or New-OfficeVisio.
- ToShape VisioShape
- Target shape object.
- ToSide VisioSide
- Preferred target shape side.
- Possible values:
Auto,Left,Right,Bottom,Top
Outputs
OfficeIMO.Visio.VisioConnector