Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.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