All docs
V21.2
21.2
21.1
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

DiagramCustomShape.ImageLeft Property

Specifies the left offset of the image in the shape.

Namespace: DevExpress.Web.ASPxDiagram

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

Declaration

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

Property Value

Type Default Description
Decimal

“0”

A decimal number from 0 to 1.

Remarks

The DefaultImageUrl property specifies the URL of an image displayed inside the shape. Use the ImageLeft property to specify the ratio of the image’s left offset to the shape’s width. If the ImageLeft option is set to 0, the image’s left edge matches the shape’s left edge.

Note

The ImageLeft property is not in effect if the BaseType property is specified.

<dx:DiagramCustomShape Type="Rounded Rectangle" BackgroundImageUrl="../Content/images/shapes/roundedRect.svg" 
  DefaultWidth="2" DefaultHeight="1" 
  DefaultImageUrl="../Content/images/photo.png" 
  ImageHeight="0.8" ImageWidth="0.3" ImageTop="0.1" ImageLeft="0.1"
  DefaultText ="Employee" TextLeft="0.4" TextWidth="0.6" />

The image below shows the result:

Custom Shape Text

See Also