windowsforms-devexpress-dot-xtramap-dot-mapcustomelement-c4545b05.md
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.v25.2.dll
NuGet Package : DevExpress.Win.Map
public MapPoint RenderOrigin { get; set; }
Public Property RenderOrigin As MapPoint
| Type | Description |
|---|---|
| MapPoint |
A point relative to the bounds of the custom map element.
|
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);
mapCustomElement1.RenderOrigin = New MapPoint(0.5, 0.8)
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) |
|---|---|
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);
mapCustomElement1.RenderOrigin = New MapPoint(-0.5, 2)
See Also