API Reference
Class
VisioConnectorLabelPlacement
Controls where connector text is placed.
Inheritance
- Object
- VisioConnectorLabelPlacement
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
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 System.Double
- Position along the connector path, from 0.0 to 1.0.
- offsetX System.Double = 0
- Horizontal page-coordinate offset.
- offsetY System.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) #Returns:
VisioConnectorLabelPlacementCreates placement along the connector path.
Parameters
- position System.Double
- Position along the connector path, from 0.0 to 1.0.
- offsetX System.Double = 0
- Horizontal page-coordinate offset.
- offsetY System.Double = 0
- Vertical page-coordinate offset.
- width System.Double = 1.25
- Label text box width in page units.
- height System.Double = 0.3
- Label text box height in page units.
public static VisioConnectorLabelPlacement At(Double pinX, Double pinY, Double width = 1.25, Double height = 0.3) #Returns:
VisioConnectorLabelPlacementCreates placement at an absolute page coordinate.
Parameters
- pinX System.Double
- Text pin X coordinate.
- pinY System.Double
- Text pin Y coordinate.
- width System.Double = 1.25
- Label text box width in page units.
- height System.Double = 0.3
- Label text box height in page units.
public VisioConnectorLabelPlacement Clone() #Returns:
VisioConnectorLabelPlacementCreates a detached copy of the placement.
Inherited 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 page units.
public Double Height { get; set; } #Label text box height in page units.