Back to Devexpress

MapCustomElement.RenderOrigin Property

windowsforms-devexpress-dot-xtramap-dot-mapcustomelement-c4545b05.md

latest2.7 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
public MapPoint RenderOrigin { get; set; }
vb
Public Property RenderOrigin As MapPoint

Property Value

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

csharp
mapCustomElement1.RenderOrigin = new MapPoint(0.5, 0.8);
vb
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.

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

See Also

MapCustomElement Class

MapCustomElement Members

DevExpress.XtraMap Namespace