Skip to main content

DiagramShapeConnectionPoint.Left Property

Specifies the horizontal offset of a connection point.

Namespace: DevExpress.Web.ASPxDiagram

Assembly: DevExpress.Web.ASPxDiagram.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(typeof(decimal), "0")]
public decimal Left { get; set; }

Property Value

Type Default Description
Decimal "0"

A decimal number from 0 to 1.

Remarks

The Left property specifies the ratio of the connection point’s horizontal offset to the shape’s width.

  • If the Left option is set to 0, the connection point matches the shape’s left edge.
  • If the Left option is set to 1, the connection point matches the shape’s right edge.

Run Demo: Custom Shapes

Example

  <dx:ASPxDiagram ID="Diagram" runat="server" Width="100%" Height="600px">
      <CustomShapes>
          <dx:DiagramCustomShape CategoryName="hardware" Type="internet" Title="Internet" ...>
              <ConnectionPoints>
                  <dx:DiagramShapeConnectionPoint Left="0.5" Top="0" />
                  <dx:DiagramShapeConnectionPoint Left="0.9" Top="0.3" />
                  <dx:DiagramShapeConnectionPoint Left="0.9" Top="0.7" />
                  <dx:DiagramShapeConnectionPoint Left="0.5" Top="1" />
                  <dx:DiagramShapeConnectionPoint Left="0.1" Top="0.5" />
              </ConnectionPoints>
          </dx:DiagramCustomShape>
          ...

Shape connection points]

See Also