# VisioConnectorLabelPlacement

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

Class 

`OfficeIMO.Visio`

**Namespace**

`OfficeIMO.Visio`

**Assembly**

`OfficeIMO.Visio`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[VisioConnectorLabelPlacement.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Routing/VisioConnectorLabelPlacement.cs#L26)

**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.

### Returned or exposed by 4

- Property [VisioConnector.LabelPlacement](/api/visio/officeimo-visio-visioconnector/#property-labelplacement)
- Method [VisioConnectorLabelPlacement.Along](/api/visio/officeimo-visio-visioconnectorlabelplacement/#method-along-double-double-double-double-double)
- Method [VisioConnectorLabelPlacement.At](/api/visio/officeimo-visio-visioconnectorlabelplacement/#method-at-double-double-double-double)
- Method [VisioConnectorLabelPlacement.Clone](/api/visio/officeimo-visio-visioconnectorlabelplacement/#method-clone)

Filter members 

Show inherited

## Constructors

VisioConnectorLabelPlacement 2 overloads

`public VisioConnectorLabelPlacement()` [#](#constructor-ctor)

[VisioConnectorLabelPlacement.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Routing/VisioConnectorLabelPlacement.cs#L26)

Initializes label placement at the center of the connector.

`public VisioConnectorLabelPlacement(double position, double offsetX = 0, double offsetY = 0)` [#](#constructor-ctor-double-double-double)

[VisioConnectorLabelPlacement.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Routing/VisioConnectorLabelPlacement.cs#L26)

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)` [#](#method-along-double-double-double-double-double)

[VisioConnectorLabelPlacement.cs:76](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Routing/VisioConnectorLabelPlacement.cs#L76)

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.

Returns

`VisioConnectorLabelPlacement`

`public static VisioConnectorLabelPlacement At(double pinX, double pinY, double width = 1.25, double height = 0.3)` [#](#method-at-double-double-double-double)

[VisioConnectorLabelPlacement.cs:90](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Routing/VisioConnectorLabelPlacement.cs#L90)

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.

Returns

`VisioConnectorLabelPlacement`

`public VisioConnectorLabelPlacement Clone()` [#](#method-clone)

[VisioConnectorLabelPlacement.cs:103](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Routing/VisioConnectorLabelPlacement.cs#L103)

Creates a detached copy of the placement.

Returns

`VisioConnectorLabelPlacement`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public double Position { get; set; }` [#](#property-position)

[VisioConnectorLabelPlacement.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Routing/VisioConnectorLabelPlacement.cs#L26)

Position along the connector path, from 0.0 to 1.0.

`public double OffsetX { get; set; }` [#](#property-offsetx)

[VisioConnectorLabelPlacement.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Routing/VisioConnectorLabelPlacement.cs#L29)

Horizontal page-coordinate offset.

`public double OffsetY { get; set; }` [#](#property-offsety)

[VisioConnectorLabelPlacement.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Routing/VisioConnectorLabelPlacement.cs#L32)

Vertical page-coordinate offset.

`public double Width { get; set; }` [#](#property-width)

[VisioConnectorLabelPlacement.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Routing/VisioConnectorLabelPlacement.cs#L35)

Label text box width in drawing inches.

`public double Height { get; set; }` [#](#property-height)

[VisioConnectorLabelPlacement.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Routing/VisioConnectorLabelPlacement.cs#L38)

Label text box height in drawing inches.

`public double? PinX { get; set; }` [#](#property-pinx)

[VisioConnectorLabelPlacement.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Routing/VisioConnectorLabelPlacement.cs#L42)

Absolute page X coordinate for labels placed with [VisioConnectorLabelPlacement.At](/api/visio/officeimo-visio-visioconnectorlabelplacement/).

`public double? PinY { get; set; }` [#](#property-piny)

[VisioConnectorLabelPlacement.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Routing/VisioConnectorLabelPlacement.cs#L48)

Absolute page Y coordinate for labels placed with [VisioConnectorLabelPlacement.At](/api/visio/officeimo-visio-visioconnectorlabelplacement/).

<!-- PowerForge markdown artifact sha256:F28D7F39C2F8AAF4290979A45F38285822AE9CC5005C0CA0CC6B5B436D8E082B -->
