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..::.CentrePoint2D Property
SFMap Class See Also Send Feedback

Gets or sets the center 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)
    Public Property CentrePoint2D As PointD

C#
    public PointD CentrePoint2D { get; set; }

Visual C++
    public:
    property PointD CentrePoint2D {
    	PointD get ();
    	void set (PointD value);
    }

# Remarks

This method replaces the obsolete CentrePoint property

Changing the CenterPoint2D 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.

# See Also

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