Collapse All Expand All Code: All Code: Multiple Code: Visual Basic Code: C# Code: Visual C++ Code: JavaScript

Visual Basic
C#
Visual C++
JavaScript

Easy GIS .NET API Reference
SFMap..::.CentrePoint Property
SFMap Class See Also Send Feedback

Gets or sets the centre point of the map in mapping coordinates (as used by the shapefiles)

Namespace: EGIS.Controls
Assembly: EGIS.Controls (in EGIS.Controls.dll)

# Syntax

Visual Basic (Declaration)
    <ObsoleteAttribute("Superceded by CentrePoint2D to use double-precision floating-point coordinates")> _
    Public Property CentrePoint As PointF

C#
    [ObsoleteAttribute("Superceded by CentrePoint2D to use double-precision floating-point coordinates")]
    public PointF CentrePoint { get; set; }

Visual C++
    [ObsoleteAttribute(L"Superceded by CentrePoint2D to use double-precision floating-point coordinates")]
    public:
    property PointF CentrePoint {
    	PointF get ();
    	void set (PointF value);
    }

# Remarks

Changing the CentrePoint can be used to center the map on a new location without changing the map scale

The ZoomLevel, CentrePoint and ClientSize of the SFMap determine the location and visible area of the rendered map. The map will be rendered centered at the CentrePoint and scaled according to the ZoomLevel.

This property should no longer be used. Use CentrePoint2D instead, which uses double-precision floating-point coordinates

# See Also

SFMap Class
EGIS.Controls Namespace
SFMap..::.ZoomLevel