Show / Hide Table of Contents

Method ScaleSelectedElement

ScaleSelectedElement(Double, Double, MapPoint)

Scales the selected element by the specified factors.

Declaration
public void ScaleSelectedElement(double scaleX, double scaleY, MapPoint origin)
Parameters
Type Name Description
System.Double scaleX

The scale factor along the x-axis. It can be positive or negative. It cannot be 0, or a non-numeric value.

System.Double scaleY

The scale factor along the y-axis. It can be positive or negative. It cannot be 0, or a non-numeric value.

MapPoint origin

The point relative to which the geometry will be scaled. If null, or IsEmpty is true, the center of the extent of the SelectedElement is used.

Remarks

If the origin System.Drawing.Point has a different SpatialReference than the associated MapView, the point will be reprojected before the geometry is rotated, using the default transformation.

Any z-value of the origin MapPoint is ignored. ScaleSelectedElement(Double, Double, MapPoint) only supports scaling the xy-dimensions.

Positive scale factors greater than 1 increase the size of the Geometry, and positive factors between 0 and 1 reduce the size of the geometry. Negative scale factors produce a geometry reflected across the axes of the origin point. Negative factors less than -1 both reflect and increase the size of the geometry, and negative factors between -1 and 0 both reflect and reduce the size of the geometry.

See Also
MoveSelectedElement(Double, Double)
MoveSelectedElement(MapPoint)
RotateSelectedElement(Double, MapPoint)
AllowScalingSelectedElement
Scale(Geometry, System.Double, System.Double, MapPoint)

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0200.3 - 200.7
.NET200.3 - 200.7
.NET Windows200.3 - 200.7
.NET Android200.3 - 200.7
.NET iOS200.3 - 200.7
.NET Framework200.3 - 200.7
UWP200.3 - 200.7
In This Article
Back to top Copyright © 2022 Esri.