MapSuiteGisEditor/WpfDesktopExtension/Shares/MapEngine.cs
/// <summary>This method updates the CurrentExtent by using the ZoomOutToCenter operation.</summary>
/// <returns>None.</returns>
/// <remarks>
/// The CurrentExtent will  be adjusted for the ratio of the screen. You
/// do not need to call GetDrawingExtent afterwards.
/// </remarks>
/// <overloads>
/// This overload allows you to pass in the height and width in screen coordinates,
/// as well as a screenX and screenY.
/// </overloads>
/// <param name="percentage">This parameter is the percentage by which you want to zoom out.</param>
/// <param name="screenX">This parameter is the screen X you want to center on.</param>
/// <param name="screenY">This parameter is the screen Y you want to center on.</param>
/// <param name="screenWidth">This parameter is the width of the screen.</param>
/// <param name="screenHeight">This parameter is the height of the screen.</param>
This method updates the CurrentExtent by using the ZoomOutToCenter operation.
This method updates the CurrentExtent by using the ZoomOutToCenter operation .
public void ZoomOutToCenter(int percentage, float screenX, float screenY, float screenWidth, float screenHeight)
        {
            ValidatorHelper.CheckInputValueIsLargerThan(percentage, "percentage", 0, RangeCheckingInclusion.ExcludeValue);
            ValidatorHelper.CheckInputValueIsLargerThan(screenWidth, "screenWidth", 0, RangeCheckingInclusion.ExcludeValue);
            ValidatorHelper.CheckInputValueIsLargerThan(screenHeight, "screenHeight", 0, RangeCheckingInclusion.ExcludeValue);
            ValidatorHelper.CheckExtentIsValid(currentExtent, "currentExtent");
            currentExtent = ZoomOutToCenter(currentExtent, percentage, screenX, screenY, screenWidth, screenHeight);
        }
public void ZoomOutToCenter ( int percentage , float screenX , float screenY , float screenWidth , float screenHeight ) { ValidatorHelper . CheckInputValueIsLargerThan ( percentage , " " , 0 , RangeCheckingInclusion . ExcludeValue ) ; ValidatorHelper . CheckInputValueIsLargerThan ( screenWidth , " " , 0 , RangeCheckingInclusion . ExcludeValue ) ; ValidatorHelper . CheckInputValueIsLargerThan ( screenHeight , " " , 0 , RangeCheckingInclusion . ExcludeValue ) ; ValidatorHelper . CheckExtentIsValid ( currentExtent , " " ) ; currentExtent = ZoomOutToCenter ( currentExtent , percentage , screenX , screenY , screenWidth , screenHeight ) ; }
This method updates the CurrentExtent by using the ZoomOutToCenter operation.
This method updates the CurrentExtent by using the ZoomOutToCenter operation .
None
percentage
int
This parameter is the percentage by which you want to zoom out.
This parameter is the percentage by which you want to zoom out .
screenX
float
This parameter is the screen X you want to center on.
This parameter is the screen X you want to center on .
screenY
float
This parameter is the screen Y you want to center on.
This parameter is the screen Y you want to center on .
screenWidth
float
This parameter is the width of the screen.
This parameter is the width of the screen .
screenHeight
float
This parameter is the height of the screen.
This parameter is the height of the screen .
remarks
The CurrentExtent will  be adjusted for the ratio of the screen. You
do not need to call GetDrawingExtent afterwards.
The CurrentExtent will be adjusted for the ratio of the screen . You do not need to call GetDrawingExtent afterwards .
overloads
This overload allows you to pass in the height and width in screen coordinates,
as well as a screenX and screenY.
This overload allows you to pass in the height and width in screen coordinates as well as a screenX and screenY .