Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

VisioConnectorFluent

OfficeIMO.Visio

Namespace
OfficeIMO.Visio
Assembly
OfficeIMO.Visio
Modifiers
static

The fluent methods of VisioConnector, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

Inheritance

  • object
  • VisioConnectorFluent

Methods

public static TSelf ArrowEnd<TSelf>(TSelf visioConnector, EndArrow arrow) #

Sets an end arrowhead style.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
arrow OfficeIMO.Visio.EndArrow required
Arrowhead enum value.

Returns

TSelf The same instance.
public static TSelf ArrowStart<TSelf>(TSelf visioConnector, EndArrow arrow) #

Sets a begin arrowhead style.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
arrow OfficeIMO.Visio.EndArrow required
Arrowhead enum value.

Returns

TSelf The same instance.
public static TSelf Baseline<TSelf>(TSelf visioConnector, OfficeTextBaseline baseline) #

Sets the native connector-label baseline placement.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
baseline OfficeIMO.Drawing.OfficeTextBaseline required
The value.

Returns

TSelf The same instance.
public static TSelf BeginArrow<TSelf>(TSelf visioConnector, EndArrow? value) #

Sets VisioConnector.BeginArrow: Gets or sets the arrow style at the beginning of the connector.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
value OfficeIMO.Visio.EndArrow? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property         // C# fluent
visioConnector.BeginArrow = value;    visioConnector.BeginArrow(value);
public static TSelf Bold<TSelf>(TSelf visioConnector, bool enabled = true) #

Sets whether the connector label is bold.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
enabled bool = true optional
The value.

Returns

TSelf The same instance.
public static TSelf Capitalization<TSelf>(TSelf visioConnector, VisioTextCapitalization capitalization) #

Sets the native connector-label capitalization mode.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
capitalization OfficeIMO.Visio.VisioTextCapitalization required
The value.

Returns

TSelf The same instance.
public static TSelf EndArrow<TSelf>(TSelf visioConnector, EndArrow? value) #

Sets VisioConnector.EndArrow: Gets or sets the arrow style at the end of the connector.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
value OfficeIMO.Visio.EndArrow? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property       // C# fluent
visioConnector.EndArrow = value;    visioConnector.EndArrow(value);
public static TSelf EndPoint<TSelf>(TSelf visioConnector, OfficePoint value) #

Sets VisioConnector.EndPoint: Resolved end in page inches. Setting this value detaches the target end.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
value OfficeIMO.Drawing.OfficePoint required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property       // C# fluent
visioConnector.EndPoint = value;    visioConnector.EndPoint(value);
public static TSelf FontFamily<TSelf>(TSelf visioConnector, string fontFamily) #

Sets the connector-label font family.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
fontFamily string required
The value.

Returns

TSelf The same instance.
public static TSelf FontSize<TSelf>(TSelf visioConnector, double size) #

Sets the connector-label font size in points.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
size double required
The value.

Returns

TSelf The same instance.
FromConnectionPoint``1 2 overloads
public static TSelf FromConnectionPoint<TSelf>(TSelf visioConnector, VisioConnectionPoint? value) #

Sets VisioConnector.FromConnectionPoint: Connection point on the starting shape. Setting null selects automatic attachment.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
value OfficeIMO.Visio.VisioConnectionPoint? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                  // C# fluent
visioConnector.FromConnectionPoint = value;    visioConnector.FromConnectionPoint(value);
public static TSelf FromConnectionPoint<TSelf>(TSelf visioConnector, Action<VisioConnectionPoint> configure) #

Configures VisioConnector.FromConnectionPoint in place: Connection point on the starting shape. Setting null selects automatic attachment.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
configure System.Action<OfficeIMO.Visio.VisioConnectionPoint> required
Configures the value.

Returns

TSelf The same instance.
public static TSelf From<TSelf>(TSelf visioConnector, Action<VisioShape> configure) #

Configures VisioConnector.From in place: Attached source shape, or null when the start is a free page point.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
configure System.Action<OfficeIMO.Visio.VisioShape> required
Configures the value.

Returns

TSelf The same instance.
public static TSelf HorizontalJumpDirection<TSelf>(TSelf visioConnector, VisioHorizontalLineJumpDirection? value) #

Sets VisioConnector.HorizontalJumpDirection: Gets or sets the jump direction for horizontal segments of this connector.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
value OfficeIMO.Visio.VisioHorizontalLineJumpDirection? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                      // C# fluent
visioConnector.HorizontalJumpDirection = value;    visioConnector.HorizontalJumpDirection(value);
public static TSelf Italic<TSelf>(TSelf visioConnector, bool enabled = true) #

Sets whether the connector label is italic.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
enabled bool = true optional
The value.

Returns

TSelf The same instance.
public static TSelf Kind<TSelf>(TSelf visioConnector, ConnectorKind kind) #

Sets the native connector routing kind.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
kind OfficeIMO.Visio.ConnectorKind required
The value.

Returns

TSelf The same instance.
LabelPlacement``1 2 overloads
public static TSelf LabelPlacement<TSelf>(TSelf visioConnector, VisioConnectorLabelPlacement? value) #

Sets VisioConnector.LabelPlacement: Optional placement information for connector text.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
value OfficeIMO.Visio.VisioConnectorLabelPlacement? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property             // C# fluent
visioConnector.LabelPlacement = value;    visioConnector.LabelPlacement(value);
public static TSelf LabelPlacement<TSelf>(TSelf visioConnector, Action<VisioConnectorLabelPlacement> configure) #

Configures VisioConnector.LabelPlacement in place (creating it when not set): Optional placement information for connector text.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
configure System.Action<OfficeIMO.Visio.VisioConnectorLabelPlacement> required
Configures the value.

Returns

TSelf The same instance.
Label``1 2 overloads
public static TSelf Label<TSelf>(TSelf visioConnector, string text) #

Sets a connector label.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
text string required
Label text.

Returns

TSelf The same instance.
public static TSelf Label<TSelf>(TSelf visioConnector, string text, double position, double offsetX = 0, double offsetY = 0) #

Sets a connector label and places it along the connector path.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
text string required
Label text.
position double required
Position along the connector path, from 0.0 to 1.0.
offsetX double = 0 optional
Horizontal page-coordinate offset.
offsetY double = 0 optional
Vertical page-coordinate offset.

Returns

TSelf The same instance.
public static TSelf LayerNames<TSelf>(TSelf visioConnector, IEnumerable<string> items) #

Adds items to VisioConnector.LayerNames: Page layer names this connector belongs to.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
items System.Collections.Generic.IEnumerable<string> required
The items, in order.

Returns

TSelf The same instance.
public static TSelf LayerName<TSelf>(TSelf visioConnector, string item) #

Adds an item to VisioConnector.LayerNames: Page layer names this connector belongs to.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
item string required
The item.

Returns

TSelf The same instance.
public static TSelf LineColor<TSelf>(TSelf visioConnector, OfficeColor color) #

Sets connector line color.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
color OfficeIMO.OfficeColor required
Line color.

Returns

TSelf The same instance.
public static TSelf LineJumpCode<TSelf>(TSelf visioConnector, VisioConnectorLineJumpCode? value) #

Sets VisioConnector.LineJumpCode: Gets or sets when this connector receives line jumps.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
value OfficeIMO.Visio.VisioConnectorLineJumpCode? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property           // C# fluent
visioConnector.LineJumpCode = value;    visioConnector.LineJumpCode(value);
public static TSelf LineJumpStyle<TSelf>(TSelf visioConnector, VisioLineJumpStyle? value) #

Sets VisioConnector.LineJumpStyle: Gets or sets the connector-level line jump style.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
value OfficeIMO.Visio.VisioLineJumpStyle? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property            // C# fluent
visioConnector.LineJumpStyle = value;    visioConnector.LineJumpStyle(value);
public static TSelf LineJumps<TSelf>(TSelf visioConnector, VisioLineJumpStyle style, VisioConnectorLineJumpCode code, VisioHorizontalLineJumpDirection horizontalDirection = Default, VisioVerticalLineJumpDirection verticalDirection = Default) #

Sets connector-level line jump behavior.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
style OfficeIMO.Visio.VisioLineJumpStyle required
The value.
code OfficeIMO.Visio.VisioConnectorLineJumpCode required
The value.
horizontalDirection OfficeIMO.Visio.VisioHorizontalLineJumpDirection = Default optional
The value.
verticalDirection OfficeIMO.Visio.VisioVerticalLineJumpDirection = Default optional
The value.

Returns

TSelf The same instance.
public static TSelf LinePattern<TSelf>(TSelf visioConnector, int pattern) #

Sets connector line pattern (Visio pattern index).

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
pattern int required
Pattern index (0=None, 1=Solid, ...).

Returns

TSelf The same instance.
public static TSelf LineWeight<TSelf>(TSelf visioConnector, double weight) #

Sets connector line weight (thickness) in inches.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
weight double required
Line weight in inches.

Returns

TSelf The same instance.
public static TSelf Protection<TSelf>(TSelf visioConnector, Action<VisioProtection> configure) #

Configures VisioConnector.Protection in place: Visio ShapeSheet protection cells controlling interactive connector editing in Visio.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
configure System.Action<OfficeIMO.Visio.VisioProtection> required
Configures the value.

Returns

TSelf The same instance.
RerouteBehavior``1 2 overloads
public static TSelf RerouteBehavior<TSelf>(TSelf visioConnector, VisioConnectorRerouteBehavior behavior) #

Sets when Visio may reroute this connector.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
behavior OfficeIMO.Visio.VisioConnectorRerouteBehavior required
The value.

Returns

TSelf The same instance.
public static TSelf RerouteBehavior<TSelf>(TSelf visioConnector, VisioConnectorRerouteBehavior? value) #

Sets VisioConnector.RerouteBehavior: Gets or sets when Visio may reroute this connector.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
value OfficeIMO.Visio.VisioConnectorRerouteBehavior? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property              // C# fluent
visioConnector.RerouteBehavior = value;    visioConnector.RerouteBehavior(value);
RouteAppearance``1 2 overloads
public static TSelf RouteAppearance<TSelf>(TSelf visioConnector, VisioLineRouteExtension appearance) #

Sets the connector-level routed connector appearance.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
appearance OfficeIMO.Visio.VisioLineRouteExtension required
The value.

Returns

TSelf The same instance.
public static TSelf RouteAppearance<TSelf>(TSelf visioConnector, VisioLineRouteExtension? value) #

Sets VisioConnector.RouteAppearance: Gets or sets the connector-level appearance for routed connectors.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
value OfficeIMO.Visio.VisioLineRouteExtension? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property              // C# fluent
visioConnector.RouteAppearance = value;    visioConnector.RouteAppearance(value);
RouteStyle``1 2 overloads
public static TSelf RouteStyle<TSelf>(TSelf visioConnector, VisioPageRouteStyle style) #

Sets the connector-level Visio routing style.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
style OfficeIMO.Visio.VisioPageRouteStyle required
The value.

Returns

TSelf The same instance.
public static TSelf RouteStyle<TSelf>(TSelf visioConnector, VisioPageRouteStyle? value) #

Sets VisioConnector.RouteStyle: Gets or sets the connector-level Visio routing style. When null, Visio uses the page default.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
value OfficeIMO.Visio.VisioPageRouteStyle? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property         // C# fluent
visioConnector.RouteStyle = value;    visioConnector.RouteStyle(value);
ShapeData``1 2 overloads
public static TSelf ShapeData<TSelf>(TSelf visioConnector, VisioShapeDataRow item) #

Adds an item to VisioConnector.ShapeData: Visio Shape Data rows attached to this connector.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
item OfficeIMO.Visio.VisioShapeDataRow required
The item.

Returns

TSelf The same instance.
public static TSelf ShapeData<TSelf>(TSelf visioConnector, IEnumerable<VisioShapeDataRow> items) #

Adds items to VisioConnector.ShapeData: Visio Shape Data rows attached to this connector.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
items System.Collections.Generic.IEnumerable<OfficeIMO.Visio.VisioShapeDataRow> required
The items, in order.

Returns

TSelf The same instance.
public static TSelf ShapeSheetSection<TSelf>(TSelf visioConnector, VisioShapeSheetSection section) #

Sets a typed ShapeSheet section without disturbing other preserved sections.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
section OfficeIMO.Visio.VisioShapeSheetSection required
Section to write.

Returns

TSelf The same instance.
public static TSelf StartPoint<TSelf>(TSelf visioConnector, OfficePoint value) #

Sets VisioConnector.StartPoint: Resolved start in page inches. Setting this value detaches the source end.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
value OfficeIMO.Drawing.OfficePoint required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property         // C# fluent
visioConnector.StartPoint = value;    visioConnector.StartPoint(value);
public static TSelf Strikethrough<TSelf>(TSelf visioConnector, OfficeTextDecorationStyle style = Single) #

Sets the native connector-label strikethrough variant.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
style OfficeIMO.Drawing.OfficeTextDecorationStyle = Single optional
The value.

Returns

TSelf The same instance.
public static TSelf TextColor<TSelf>(TSelf visioConnector, OfficeColor color) #

Sets the connector-label text color.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
color OfficeIMO.OfficeColor required
The value.

Returns

TSelf The same instance.
TextStyle``1 2 overloads
public static TSelf TextStyle<TSelf>(TSelf visioConnector, VisioTextStyle? value) #

Sets VisioConnector.TextStyle: Gets or sets whole-label text formatting for this connector.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
value OfficeIMO.Visio.VisioTextStyle? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property        // C# fluent
visioConnector.TextStyle = value;    visioConnector.TextStyle(value);
public static TSelf TextStyle<TSelf>(TSelf visioConnector, Action<VisioTextStyle> configure) #

Configures VisioConnector.TextStyle in place (creating it when not set): Gets or sets whole-label text formatting for this connector.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
configure System.Action<OfficeIMO.Visio.VisioTextStyle> required
Configures the value.

Returns

TSelf The same instance.
ToConnectionPoint``1 2 overloads
public static TSelf ToConnectionPoint<TSelf>(TSelf visioConnector, VisioConnectionPoint? value) #

Sets VisioConnector.ToConnectionPoint: Connection point on the ending shape. Setting null selects automatic attachment.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
value OfficeIMO.Visio.VisioConnectionPoint? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                // C# fluent
visioConnector.ToConnectionPoint = value;    visioConnector.ToConnectionPoint(value);
public static TSelf ToConnectionPoint<TSelf>(TSelf visioConnector, Action<VisioConnectionPoint> configure) #

Configures VisioConnector.ToConnectionPoint in place: Connection point on the ending shape. Setting null selects automatic attachment.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
configure System.Action<OfficeIMO.Visio.VisioConnectionPoint> required
Configures the value.

Returns

TSelf The same instance.
public static TSelf To<TSelf>(TSelf visioConnector, Action<VisioShape> configure) #

Configures VisioConnector.To in place: Attached target shape, or null when the end is a free page point.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
configure System.Action<OfficeIMO.Visio.VisioShape> required
Configures the value.

Returns

TSelf The same instance.
public static TSelf Underline<TSelf>(TSelf visioConnector, OfficeTextDecorationStyle style = Single) #

Sets the native connector-label underline variant.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
style OfficeIMO.Drawing.OfficeTextDecorationStyle = Single optional
The value.

Returns

TSelf The same instance.
public static TSelf VerticalJumpDirection<TSelf>(TSelf visioConnector, VisioVerticalLineJumpDirection? value) #

Sets VisioConnector.VerticalJumpDirection: Gets or sets the jump direction for vertical segments of this connector.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
value OfficeIMO.Visio.VisioVerticalLineJumpDirection? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                    // C# fluent
visioConnector.VerticalJumpDirection = value;    visioConnector.VerticalJumpDirection(value);
public static TSelf Waypoints<TSelf>(TSelf visioConnector, IEnumerable<VisioConnectorWaypoint> items) #

Adds items to VisioConnector.Waypoints: Explicit page-coordinate waypoints between the start and end of the connector.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
items System.Collections.Generic.IEnumerable<OfficeIMO.Visio.VisioConnectorWaypoint> required
The items, in order.

Returns

TSelf The same instance.
public static TSelf Waypoint<TSelf>(TSelf visioConnector, VisioConnectorWaypoint item) #

Adds an item to VisioConnector.Waypoints: Explicit page-coordinate waypoints between the start and end of the connector.

Type Parameters

TSelf

Parameters

visioConnector TSelf required
The instance.
item OfficeIMO.Visio.VisioConnectorWaypoint required
The item.

Returns

TSelf The same instance.