ESRI.ArcGIS.ADF.IMS
Expand Method
See Also  Example
ESRI.ArcGIS.ADF.IMS.Geometry Namespace > Envelope Class : Expand Method




expandPercentage
Expands the Envelope by a given percentage.

Syntax

Visual Basic (Declaration) 
Public Function Expand( _
   ByVal expandPercentage As Double _
) As Envelope
Visual Basic (Usage)Copy Code
Dim instance As Envelope
Dim expandPercentage As Double
Dim value As Envelope
 
value = instance.Expand(expandPercentage)
C# 
public Envelope Expand( 
   double expandPercentage
)

Parameters

expandPercentage

Return Value

A new expanded Envelope.

Example

The following example expands the current MapView's extent by 50 percent and assigns the new envelope to the map extent. The code assumes an existing MapView object.
C#Copy Code
ESRI.ArcGIS.ADF.IMS.Geometry.Envelope newEnvelope 

    = mapView.Extent.Expand(50); 

mapView.Extent = newEnvelope; 

    
Visual BasicCopy Code
Dim newEnvelope As ESRI.ArcGIS.ADF.IMS.Geometry.Envelope _

    = mapView.Extent.Expand(50)

mapView.Extent = newEnvelope

Remarks

This method enlarges the Envelope by the given percentage. The percentage value is based on the input envelope. The new envelope has the same center as the input envelope.

The expandPercentage value must be greater than or equal to zero.

See Also

© 2010 All Rights Reserved.