VisioConnectorLabelPlacement
OfficeIMO.Visio
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
Constructors
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
- 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.
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
- 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 drawing inches.
- height double = 0.3
- Label text box height in drawing inches.
Returns
VisioConnectorLabelPlacementpublic 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
- Text pin X coordinate.
- pinY double
- Text pin Y coordinate.
- width double = 1.25
- Label text box width in drawing inches.
- height double = 0.3
- Label text box height in drawing inches.
Returns
VisioConnectorLabelPlacementpublic VisioConnectorLabelPlacement Clone() #Creates a detached copy of the placement.
Returns
VisioConnectorLabelPlacementInherited Methods
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.