Skip to main content

MapCustomElement.RenderOrigin Property

Gets or sets the point relative to the bounds of the custom map element. This point coincides with the map point specified in the MapCustomElement.Location property.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v23.2.dll

NuGet Package: DevExpress.Win.Map

Declaration

public MapPoint RenderOrigin { get; set; }

Property Value

Type Description
MapPoint

A point relative to the bounds of the custom map element.

Remarks

You can use the RenderOrigin property to specify the offset of a MapCustomElement. This property’s values are used as the range factor for the MapCustomElement’s X and Y axis.

mapCustomElement1.RenderOrigin = new MapPoint(0.5, 0.8);

MapCustomElement RenderOrigin

The RenderOrigin point of the MapCustomElement coincides with the map point specified in the MapCustomElement.Location property.

Render Origin (0.5, 0.8) Render Origin (0,0), Render Origin (1,1)
MapCustomElement RenderOrigin and Location MapCustomElement RenderOrigin and Location

You can also use values less than 0 and greater than 1 to increase the distance between the MapCustomElement and the location point.

mapCustomElement1.RenderOrigin = new MapPoint(-0.5, 2);

MapCustomElement RenderOrigin

See Also