Back to Devexpress

MapPushpin.RenderOrigin Property

windowsforms-devexpress-dot-xtramap-dot-mappushpin.md

latest2.9 KB
Original Source

MapPushpin.RenderOrigin Property

Gets or sets the center point of any possible render, relative to the bounds of the map pushpin.

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 MapPoint structure value.

|

Remarks

For the following parameter value.

csharp
mapPushpin.RenderOrigin = new MapPoint(0.5, 0.8);
vb
mapPushpin.RenderOrigin = New MapPoint(0.5, 0.8)

It should look as follows.

Note

If a MapPushpin uses the default image, then this property is ignored.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the RenderOrigin property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

how-to-colorize-pushpin-items-based-on-data-source-data-t423869/CS/ColorPushpinFactory/Form1.cs#L67

csharp
pushpin.Image = image;
pushpin.RenderOrigin = new MapPoint(0.5, 0.8);
pushpin.TextOrigin = new Point(22, 14);

how-to-colorize-pushpin-items-based-on-data-source-data-t423869/VB/ColorPushpinFactory/Form1.vb#L62

vb
pushpin.Image = image
pushpin.RenderOrigin = New MapPoint(0.5, 0.8)
pushpin.TextOrigin = New Point(22, 14)

See Also

MapPushpin Class

MapPushpin Members

DevExpress.XtraMap Namespace