Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

VisioConnectorLabelPlacement

OfficeIMO.Visio

Namespace
OfficeIMO.Visio
Assembly
OfficeIMO.Visio
Source revision
551365f138da with working tree changes
Modifiers
sealed

Controls where connector text is placed. Coordinates, offsets and dimensions use the page's drawing units; image export applies the page's drawing scale.

Inheritance

  • object
  • VisioConnectorLabelPlacement

Usage

Explore 4 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.

Constructors

VisioConnectorLabelPlacement 2 overloads
public VisioConnectorLabelPlacement() #

Initializes label placement at the center of the connector.

public VisioConnectorLabelPlacement(double position, double offsetX = 0, double offsetY = 0) #

Initializes label placement along a connector path.

Parameters

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.

Methods

public static VisioConnectorLabelPlacement Along(double position, double offsetX = 0, double offsetY = 0, double width = 1.25, double height = 0.3) #

Creates placement along the connector path.

Parameters

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.
width double = 1.25 optional
Label text box width in drawing inches.
height double = 0.3 optional
Label text box height in drawing inches.
public static VisioConnectorLabelPlacement At(double pinX, double pinY, double width = 1.25, double height = 0.3) #

Creates placement at an absolute page coordinate.

Parameters

pinX double required
Text pin X coordinate.
pinY double required
Text pin Y coordinate.
width double = 1.25 optional
Label text box width in drawing inches.
height double = 0.3 optional
Label text box height in drawing inches.
public VisioConnectorLabelPlacement Clone() #

Creates a detached copy of the placement.

Properties

public double Position { get; set; } #

Position along the connector path, from 0.0 to 1.0.

public double OffsetX { get; set; } #

Horizontal page-coordinate offset.

public double OffsetY { get; set; } #

Vertical page-coordinate offset.

public double Width { get; set; } #

Label text box width in drawing inches.

public double Height { get; set; } #

Label text box height in drawing inches.

public double? PinX { get; set; } #

Absolute page X coordinate for labels placed with VisioConnectorLabelPlacement.At.

public double? PinY { get; set; } #

Absolute page Y coordinate for labels placed with VisioConnectorLabelPlacement.At.