VisioConnector
OfficeIMO.Visio
Connects attached shapes or free page points.
Inheritance
- object
- VisioConnector
Usage
Explore 117 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 74
- Extension method VisioConnector.ApplyStyle
- Extension method VisioConnector.ApplyTextStyle
- Extension method VisioConnector.ClearRoute
- Extension method VisioConnector.PlaceLabel
- Extension method VisioConnector.PlaceLabelAt
- Extension method VisioConnector.ResizeLabelToText
- Extension method VisioConnector.RouteOrthogonal
- Extension method VisioConnector.RouteOrthogonalAroundShapes
- Extension method VisioConnector.RouteSelfLoop
- Extension method VisioConnector.RouteThrough
- Extension method VisioConnector.SetShapeSheetSection
- Method VisioConnector.ClearProtection
- Method VisioConnector.ClearRoutingPolicy
- Method VisioConnector.FromSide
- Method VisioConnector.LockEndpoints
- Method VisioConnector.Protect
- Method VisioConnector.SetArrowEnd
- Method VisioConnector.SetArrowStart
- Method VisioConnector.SetBaseline
- Method VisioConnector.SetBold
- Method VisioConnector.SetCapitalization
- Method VisioConnector.SetFont
- Method VisioConnector.SetFontSize
- Method VisioConnector.SetItalic
- Method VisioConnector.SetKind
- Method VisioConnector.SetLabel
- Method VisioConnector.SetLayer
- Method VisioConnector.SetLineColor
- Method VisioConnector.SetLineJumps
- Method VisioConnector.SetLinePattern
- Method VisioConnector.SetLineWeight
- Method VisioConnector.SetRerouteBehavior
- Method VisioConnector.SetRouteAppearance
- Method VisioConnector.SetRouteStyle
- Method VisioConnector.SetStrikethrough
- Method VisioConnector.SetTextColor
- Method VisioConnector.SetUnderline
- Method VisioConnector.Sides
- Method VisioConnector.ToSide
- Method VisioConnector.TransformTextCase
- Method VisioConnectorRoutingExtensions.ClearRoute
- Method VisioConnectorRoutingExtensions.PlaceLabel
- Method VisioConnectorRoutingExtensions.PlaceLabelAt
- Method VisioConnectorRoutingExtensions.RouteOrthogonal
- Method VisioConnectorRoutingExtensions.RouteOrthogonalAroundShapes
- Method VisioConnectorRoutingExtensions.RouteSelfLoop
- Method VisioConnectorRoutingExtensions.RouteThrough
- Property VisioConnectorRoutingOptions.ConnectorCrossingReferences
- Method VisioConnectorSelection.GetEnumerator
- Property VisioConnectorSelection.Item
- Method VisioLayoutExtensions.ResizeLabelToText
- Extension method VisioPage.ConnectedConnectors
- Extension method VisioPage.ConnectorsInLayer
- Extension method VisioPage.ConnectorsWithHyperlink
- Extension method VisioPage.ConnectorsWithHyperlinks
- Extension method VisioPage.ConnectorsWithProtection
- Extension method VisioPage.IncomingConnectors
- Extension method VisioPage.OutgoingConnectors
- Method VisioPage.AddConnector
- Method VisioPage.RetargetConnectors
- Property VisioPage.Connectors
- Method VisioPageQueryExtensions.ConnectedConnectors
- Method VisioPageQueryExtensions.ConnectorsInLayer
- Method VisioPageQueryExtensions.ConnectorsWithHyperlink
- Method VisioPageQueryExtensions.ConnectorsWithHyperlinks
- Method VisioPageQueryExtensions.ConnectorsWithProtection
- Method VisioPageQueryExtensions.IncomingConnectors
- Method VisioPageQueryExtensions.OutgoingConnectors
- Method VisioShapeDataSchema.ApplyTo
- Method VisioShapeDataSchema.ApplyToConnectors
- Property VisioShapeDuplicationOptions.ConnectorIdFactory
- Method VisioShapeSheetExtensions.SetShapeSheetSection
- Method VisioStyleExtensions.ApplyStyle
- Method VisioStyleExtensions.ApplyTextStyle
Accepted by parameters 43
- Extension method VisioConnector.ApplyStyle
- Extension method VisioConnector.ApplyTextStyle
- Extension method VisioConnector.ClearRoute
- Extension method VisioConnector.GetConnectorContentBounds
- Extension method VisioConnector.GetLabelBounds
- Extension method VisioConnector.GetShapeSheetSections
- Extension method VisioConnector.PlaceLabel
- Extension method VisioConnector.PlaceLabelAt
- Extension method VisioConnector.RemoveShapeSheetSection
- Extension method VisioConnector.ResizeLabelToText
- Extension method VisioConnector.RouteOrthogonal
- Extension method VisioConnector.RouteOrthogonalAroundShapes
- Extension method VisioConnector.RouteSelfLoop
- Extension method VisioConnector.RouteThrough
- Extension method VisioConnector.SetShapeSheetSection
- Method VisioConnectorRoutingExtensions.ClearRoute
- Method VisioConnectorRoutingExtensions.PlaceLabel
- Method VisioConnectorRoutingExtensions.PlaceLabelAt
- Method VisioConnectorRoutingExtensions.RouteOrthogonal
- Method VisioConnectorRoutingExtensions.RouteOrthogonalAroundShapes
- Method VisioConnectorRoutingExtensions.RouteSelfLoop
- Method VisioConnectorRoutingExtensions.RouteThrough
- Constructor VisioConnectorSelection.VisioConnectorSelection
- Method VisioConnectorStyle.ApplyTo
- Method VisioLayoutExtensions.GetConnectorContentBounds
- Method VisioLayoutExtensions.GetLabelBounds
- Method VisioLayoutExtensions.ResizeLabelToText
- Extension method VisioPage.SelectConnectors
- Method VisioPage.AddConnector
- Method VisioPage.AddToLayer
- Method VisioPage.ConfigureConnectors
- Method VisioPage.ReconnectConnector
- Method VisioPage.ReconnectConnectorEnd
- Method VisioPage.ReconnectConnectorStart
- Method VisioPageQueryExtensions.SelectConnectors
- Method VisioShapeDataSchema.ApplyTo
- Method VisioShapeDataSchema.ApplyToConnectors
- Method VisioShapeDataSchema.Validate
- Method VisioShapeSheetExtensions.GetShapeSheetSections
- Method VisioShapeSheetExtensions.RemoveShapeSheetSection
- Method VisioShapeSheetExtensions.SetShapeSheetSection
- Method VisioStyleExtensions.ApplyStyle
- Method VisioStyleExtensions.ApplyTextStyle
Constructors
public VisioConnector(VisioShape from, VisioShape to) #Initializes a new instance of the VisioConnector class connecting two shapes.
Parameters
- from OfficeIMO.Visio.VisioShape
- Shape from which the connector starts.
- to OfficeIMO.Visio.VisioShape
- Shape at which the connector ends.
public VisioConnector(string id, VisioShape from, VisioShape to) #Initializes a new instance of the VisioConnector class with an explicit identifier.
Parameters
- id string
- Identifier of the connector.
- from OfficeIMO.Visio.VisioShape
- Shape from which the connector starts.
- to OfficeIMO.Visio.VisioShape
- Shape at which the connector ends.
public VisioConnector(string id, OfficePoint start, OfficePoint end) #Creates a connector between free page points expressed in inches.
Parameters
- id string
- start OfficeIMO.Drawing.OfficePoint
- end OfficeIMO.Drawing.OfficePoint
Methods
public VisioHyperlink AddHyperlink(string address, string? description = null, string? subAddress = null) #Adds a hyperlink to this connector.
Parameters
- address string
- External hyperlink address.
- description string? = null
- Optional display description.
- subAddress string? = null
- Optional internal sub-address.
public VisioHyperlink AddHyperlink(Uri address, string? description = null, string? subAddress = null) #Adds a hyperlink to this connector.
Parameters
- address System.Uri
- External hyperlink address.
- description string? = null
- Optional display description.
- subAddress string? = null
- Optional internal sub-address.
public VisioHyperlink AddPageHyperlink(string pageName, string? description = null) #Adds an internal hyperlink to another page in the same Visio document.
Parameters
- pageName string
- Target page name.
- description string? = null
- Optional display description.
public VisioConnector ClearProtection() #Clears explicit ShapeSheet protection cells from this connector.
Returns
VisioConnectorpublic VisioConnector ClearRoutingPolicy() #Clears explicit Shape Layout routing override cells from this connector.
Returns
VisioConnectorpublic VisioShapeDataRow? FindShapeData(string name) #Finds a Shape Data row by row name.
Parameters
- name string
- Shape Data row name.
Returns
VisioShapeDataRow?public VisioConnector FromSide(VisioSide side) #Connects the start of the connector to an explicit side.
Parameters
- side OfficeIMO.Visio.VisioSide
- Preferred source side.
Returns
VisioConnectorpublic string? GetShapeDataValue(string name) #Gets a Shape Data value by row name.
Parameters
- name string
- Shape Data row name.
Returns
string?public VisioConnector LockEndpoints(bool locked = true) #Locks or unlocks connector endpoints.
Parameters
- locked bool = true
Returns
VisioConnectorpublic VisioConnector Protect(Action<VisioProtection> configure) #Configures ShapeSheet protection cells for this connector.
Parameters
- configure System.Action<OfficeIMO.Visio.VisioProtection>
- Protection configuration delegate.
Returns
VisioConnectorpublic VisioConnector SetArrowEnd(EndArrow arrow) #Sets an end arrowhead style.
Parameters
- arrow OfficeIMO.Visio.EndArrow
- Arrowhead enum value.
Returns
VisioConnectorpublic VisioConnector SetArrowStart(EndArrow arrow) #Sets a begin arrowhead style.
Parameters
- arrow OfficeIMO.Visio.EndArrow
- Arrowhead enum value.
Returns
VisioConnectorpublic VisioConnector SetBaseline(OfficeTextBaseline baseline) #Sets the native connector-label baseline placement.
Parameters
- baseline OfficeIMO.Drawing.OfficeTextBaseline
Returns
VisioConnectorpublic VisioConnector SetBold(bool enabled = true) #Sets whether the connector label is bold.
Parameters
- enabled bool = true
Returns
VisioConnectorpublic VisioConnector SetCapitalization(VisioTextCapitalization capitalization) #Sets the native connector-label capitalization mode.
Parameters
- capitalization OfficeIMO.Visio.VisioTextCapitalization
Returns
VisioConnectorpublic VisioConnector SetFont(string fontFamily) #Sets the connector-label font family.
Parameters
- fontFamily string
Returns
VisioConnectorpublic VisioConnector SetFontSize(double size) #Sets the connector-label font size in points.
Parameters
- size double
Returns
VisioConnectorpublic VisioConnector SetItalic(bool enabled = true) #Sets whether the connector label is italic.
Parameters
- enabled bool = true
Returns
VisioConnectorpublic VisioConnector SetKind(ConnectorKind kind) #Sets the native connector routing kind.
Parameters
- kind OfficeIMO.Visio.ConnectorKind
Returns
VisioConnectorpublic VisioConnector SetLabel(string text) #Sets a connector label.
Parameters
- text string
- Label text.
Returns
VisioConnectorpublic VisioConnector SetLabel(string text, double position, double offsetX = 0, double offsetY = 0) #Sets a connector label and places it along the connector path.
Parameters
- text string
- Label text.
- position double
- Position along the connector path, from 0.0 to 1.0.
- offsetX double = 0
- Horizontal page-coordinate offset.
- offsetY double = 0
- Vertical page-coordinate offset.
Returns
VisioConnectorpublic VisioConnector SetLayer(string layerName) #Adds the connector to a page layer.
Parameters
- layerName string
- Layer name.
Returns
VisioConnectorpublic VisioConnector SetLineColor(OfficeColor color) #Sets connector line color.
Parameters
- color OfficeIMO.OfficeColor
- Line color.
Returns
VisioConnectorpublic VisioConnector SetLineJumps(VisioLineJumpStyle style, VisioConnectorLineJumpCode code, VisioHorizontalLineJumpDirection horizontalDirection = Default, VisioVerticalLineJumpDirection verticalDirection = Default) #Sets connector-level line jump behavior.
Parameters
- style OfficeIMO.Visio.VisioLineJumpStyle
- code OfficeIMO.Visio.VisioConnectorLineJumpCode
- horizontalDirection OfficeIMO.Visio.VisioHorizontalLineJumpDirection = Default
- verticalDirection OfficeIMO.Visio.VisioVerticalLineJumpDirection = Default
Returns
VisioConnectorpublic VisioConnector SetLinePattern(int pattern) #Sets connector line pattern (Visio pattern index).
Parameters
- pattern int
- Pattern index (0=None, 1=Solid, ...).
Returns
VisioConnectorpublic VisioConnector SetLineWeight(double weight) #Sets connector line weight (thickness) in inches.
Parameters
- weight double
- Line weight in inches.
Returns
VisioConnectorpublic VisioConnector SetRerouteBehavior(VisioConnectorRerouteBehavior behavior) #Sets when Visio may reroute this connector.
Parameters
- behavior OfficeIMO.Visio.VisioConnectorRerouteBehavior
Returns
VisioConnectorpublic VisioConnector SetRouteAppearance(VisioLineRouteExtension appearance) #Sets the connector-level routed connector appearance.
Parameters
- appearance OfficeIMO.Visio.VisioLineRouteExtension
Returns
VisioConnectorpublic VisioConnector SetRouteStyle(VisioPageRouteStyle style) #Sets the connector-level Visio routing style.
Parameters
- style OfficeIMO.Visio.VisioPageRouteStyle
Returns
VisioConnectorpublic VisioShapeDataRow SetShapeData(string name, string? value, string? label = null, VisioShapeDataType? type = null, string? prompt = null, string? format = null) #Sets or creates a Shape Data row.
Parameters
- name string
- Shape Data row name.
- value string?
- Shape Data value.
- label string? = null
- Optional label shown in Visio's Shape Data window.
- type OfficeIMO.Visio.VisioShapeDataType? = null
- Optional Shape Data type.
- prompt string? = null
- Optional help prompt.
- format string? = null
- Optional format picture or list values.
Returns
VisioShapeDataRowpublic VisioConnector SetStrikethrough(OfficeTextDecorationStyle style = Single) #Sets the native connector-label strikethrough variant.
Parameters
- style OfficeIMO.Drawing.OfficeTextDecorationStyle = Single
Returns
VisioConnectorpublic VisioConnector SetTextColor(OfficeColor color) #Sets the connector-label text color.
Parameters
- color OfficeIMO.OfficeColor
Returns
VisioConnectorpublic VisioConnector SetUnderline(OfficeTextDecorationStyle style = Single) #Sets the native connector-label underline variant.
Parameters
- style OfficeIMO.Drawing.OfficeTextDecorationStyle = Single
Returns
VisioConnectorpublic VisioConnector Sides(VisioSide fromSide, VisioSide toSide) #Connects both ends to explicit shape sides.
Parameters
- fromSide OfficeIMO.Visio.VisioSide
- Preferred source side.
- toSide OfficeIMO.Visio.VisioSide
- Preferred target side.
Returns
VisioConnectorpublic VisioConnector ToSide(VisioSide side) #Connects the end of the connector to an explicit side.
Parameters
- side OfficeIMO.Visio.VisioSide
- Preferred target side.
Returns
VisioConnectorpublic VisioConnector TransformTextCase(OfficeTextCase textCase, CultureInfo? culture = null) #Transforms the stored connector label while preserving connector and text formatting.
Parameters
- textCase OfficeIMO.Drawing.OfficeTextCase
- culture System.Globalization.CultureInfo? = null
Returns
VisioConnectorInherited Methods
Properties
public VisioShape? From { get; internal set; } #Attached source shape, or null when the start is a free page point.
public VisioShape? To { get; internal set; } #Attached target shape, or null when the end is a free page point.
public VisioConnectionPoint? FromConnectionPoint { get; set; } #Connection point on the starting shape. Setting null selects automatic attachment.
public VisioConnectionPoint? ToConnectionPoint { get; set; } #Connection point on the ending shape. Setting null selects automatic attachment.
public EndArrow? BeginArrow { get; set; } #Gets or sets the arrow style at the beginning of the connector.
public EndArrow? EndArrow { get; set; } #Gets or sets the arrow style at the end of the connector.
public string? Label { get; set; } #Optional label displayed alongside the connector.
public VisioConnectorLabelPlacement? LabelPlacement { get; set; } #Optional placement information for connector text.
public VisioTextStyle? TextStyle { get; set; } #Gets or sets whole-label text formatting for this connector.
public IList<VisioConnectorWaypoint> Waypoints { get; } #Explicit page-coordinate waypoints between the start and end of the connector.
public ISet<string> LayerNames { get; } #Page layer names this connector belongs to.
public IList<VisioHyperlink> Hyperlinks { get; } #Hyperlinks attached to this connector.
public IList<VisioShapeDataRow> ShapeData { get; } #Visio Shape Data rows attached to this connector.
public Dictionary<string, string> Data { get; } #Arbitrary data associated with the connector.
public VisioProtection Protection { get; } #Visio ShapeSheet protection cells controlling interactive connector editing in Visio.
public VisioPageRouteStyle? RouteStyle { get; set; } #Gets or sets the connector-level Visio routing style. When null, Visio uses the page default.
public VisioLineRouteExtension? RouteAppearance { get; set; } #Gets or sets the connector-level appearance for routed connectors.
public VisioLineJumpStyle? LineJumpStyle { get; set; } #Gets or sets the connector-level line jump style.
public VisioConnectorLineJumpCode? LineJumpCode { get; set; } #Gets or sets when this connector receives line jumps.
public VisioHorizontalLineJumpDirection? HorizontalJumpDirection { get; set; } #Gets or sets the jump direction for horizontal segments of this connector.
public VisioVerticalLineJumpDirection? VerticalJumpDirection { get; set; } #Gets or sets the jump direction for vertical segments of this connector.
public VisioConnectorRerouteBehavior? RerouteBehavior { get; set; } #Gets or sets when Visio may reroute this connector.
public double LineWeight { get; set; } #Line weight (thickness) of the connector.
public int LinePattern { get; set; } #Line pattern (0=None, 1=Solid, 2=Dashed, etc.).
public OfficePoint StartPoint { get; set; } #Resolved start in page inches. Setting this value detaches the source end.
public OfficePoint EndPoint { get; set; } #Resolved end in page inches. Setting this value detaches the target end.
Extension Methods
public static VisioConnector ApplyStyle(VisioConnector connector, VisioConnectorStyle style) #Applies a reusable style to a connector.
Parameters
- connector OfficeIMO.Visio.VisioConnector
- style OfficeIMO.Visio.VisioConnectorStyle
Returns
VisioConnectorpublic static VisioConnector ApplyTextStyle(VisioConnector connector, VisioTextStyle style) #Applies a reusable text style to a connector label.
Parameters
- connector OfficeIMO.Visio.VisioConnector
- style OfficeIMO.Visio.VisioTextStyle
Returns
VisioConnectorpublic static VisioConnector ClearRoute(VisioConnector connector) #Removes explicit connector waypoints and returns the connector to dynamic routing.
Parameters
- connector OfficeIMO.Visio.VisioConnector
- Connector to reset.
Returns
VisioConnectorpublic static VisioShapeBounds GetConnectorContentBounds(VisioConnector connector) #Gets connector route and label bounds in page inches.
Parameters
- connector OfficeIMO.Visio.VisioConnector
Returns
VisioShapeBoundspublic static VisioShapeBounds GetLabelBounds(VisioConnector connector) #Gets the explicitly placed connector label bounds in page inches, or empty bounds when no label is placed.
Parameters
- connector OfficeIMO.Visio.VisioConnector
Returns
VisioShapeBoundspublic static IReadOnlyList<VisioShapeSheetSection> GetShapeSheetSections(VisioConnector connector) #Returns source-preserved ShapeSheet sections, including native text rows with current typed edits.
Parameters
- connector OfficeIMO.Visio.VisioConnector
Returns
IReadOnlyList<VisioShapeSheetSection>public static VisioConnector PlaceLabel(VisioConnector connector, double position = 0.5, double offsetX = 0, double offsetY = 0, double width = 1.25, double height = 0.3) #Places connector text along the connector path.
Parameters
- connector OfficeIMO.Visio.VisioConnector
- Connector whose label should be placed.
- position double = 0.5
- Position along the connector path, from 0.0 to 1.0.
- offsetX double = 0
- Horizontal page-coordinate offset.
- offsetY double = 0
- Vertical page-coordinate offset.
- width double = 1.25
- Label text box width in page units.
- height double = 0.3
- Label text box height in page units.
Returns
VisioConnectorpublic static VisioConnector PlaceLabelAt(VisioConnector connector, double pinX, double pinY, double width = 1.25, double height = 0.3) #Places connector text at an absolute page coordinate.
Parameters
- connector OfficeIMO.Visio.VisioConnector
- Connector whose label should be placed.
- pinX double
- Text pin X coordinate.
- pinY double
- Text pin Y coordinate.
- width double = 1.25
- Label text box width in page units.
- height double = 0.3
- Label text box height in page units.
Returns
VisioConnectorpublic static bool RemoveShapeSheetSection(VisioConnector connector, string name) #Removes a source-preserved section and clears any typed formatting owned by that text section.
Parameters
- connector OfficeIMO.Visio.VisioConnector
- name string
Returns
boolpublic static VisioConnector ResizeLabelToText(VisioConnector connector, OfficeFontInfo? fontInfo = null, double horizontalPadding = 0.12, double verticalPadding = 0.06, double minimumWidth = 0.45, double minimumHeight = 0.22, double? maximumWidth = null) #Resizes a connector label text box to fit its plain text using deterministic OfficeIMO.Drawing measurement.
Parameters
- connector OfficeIMO.Visio.VisioConnector
- Connector whose label box should be resized.
- fontInfo OfficeIMO.Drawing.OfficeFontInfo? = null
- Font descriptor used for measurement. Uses connector text style, then Office default, when omitted.
- horizontalPadding double = 0.12
- Horizontal padding in inches.
- verticalPadding double = 0.06
- Vertical padding in inches.
- minimumWidth double = 0.45
- Minimum resulting label width in inches.
- minimumHeight double = 0.22
- Minimum resulting label height in inches.
- maximumWidth double? = null
- Optional maximum label width in inches. Text wraps by words when supplied.
Returns
VisioConnectorpublic static VisioConnector RouteOrthogonal(VisioConnector connector, VisioConnectorRouteStyle style = Auto, double offset = 0) #Generates a clean three-segment orthogonal route between connector endpoints.
Parameters
- connector OfficeIMO.Visio.VisioConnector
- Connector to route.
- style OfficeIMO.Visio.VisioConnectorRouteStyle = Auto
- Orthogonal route orientation.
- offset double = 0
- Optional offset applied to the center routing lane.
Returns
VisioConnectorpublic static VisioConnector RouteOrthogonalAroundShapes(VisioConnector connector, IEnumerable<VisioShape> obstacles, double padding = 0.15, int maxLanes = 12) #Generates an orthogonal route that avoids unrelated obstacle shapes when a clear lane is available.
Parameters
- connector OfficeIMO.Visio.VisioConnector
- Connector to route.
- obstacles System.Collections.Generic.IEnumerable<OfficeIMO.Visio.VisioShape>
- Shapes that the route should avoid. Source, target, containers, background surfaces, and generated adornments are ignored.
- padding double = 0.15
- Padding added around each obstacle while testing route intersections.
- maxLanes int = 12
- Number of positive and negative routing lanes to try on each axis.
Returns
VisioConnectorpublic static VisioConnector RouteOrthogonalAroundShapes(VisioConnector connector, IEnumerable<VisioShape> obstacles, VisioConnectorRoutingOptions options) #Generates an orthogonal route that avoids unrelated obstacle shapes when a clear lane is available.
Parameters
- connector OfficeIMO.Visio.VisioConnector
- Connector to route.
- obstacles System.Collections.Generic.IEnumerable<OfficeIMO.Visio.VisioShape>
- Shapes that the route should avoid. Source and target shapes are ignored.
- options OfficeIMO.Visio.VisioConnectorRoutingOptions
- Routing options controlling padding, lane search, and whether zones/containers count as obstacles.
Returns
VisioConnectorpublic static VisioConnector RouteSelfLoop(VisioConnector connector, double clearance = 0.35) #Routes a connector from a shape back to itself as an external orthogonal loop.
Parameters
- connector OfficeIMO.Visio.VisioConnector
- Self-connector to route.
- clearance double = 0.35
- Clearance outside the shape bounds, in page units.
Returns
VisioConnectorpublic static VisioConnector RouteThrough(VisioConnector connector, params VisioConnectorWaypoint[] waypoints) #Replaces connector geometry with finite page-coordinate waypoints after validating the entire input.
Parameters
- connector OfficeIMO.Visio.VisioConnector
- Connector to route.
- waypoints OfficeIMO.Visio.VisioConnectorWaypoint[]
- Absolute page coordinates between start and end.
Returns
VisioConnectorpublic static VisioConnector RouteThrough(VisioConnector connector, IEnumerable<VisioConnectorWaypoint> waypoints) #Replaces connector geometry with finite page-coordinate waypoints after validating the entire input. Invalid entries or a failed enumeration leave the previous route intact.
Parameters
- connector OfficeIMO.Visio.VisioConnector
- Connector to route.
- waypoints System.Collections.Generic.IEnumerable<OfficeIMO.Visio.VisioConnectorWaypoint>
- Absolute page coordinates between start and end.
Returns
VisioConnectorpublic static VisioConnector SetShapeSheetSection(VisioConnector connector, VisioShapeSheetSection section) #Sets a typed ShapeSheet section without disturbing other preserved sections.
Parameters
- connector OfficeIMO.Visio.VisioConnector
- section OfficeIMO.Visio.VisioShapeSheetSection
Returns
VisioConnector