MapSuiteGisEditor/WpfDesktopExtension/Shares/MapEngine.cs
/// <summary>This method updates the CurrentExtent by using a panning operation.</summary>
/// <overloads>
/// This overload allows you to pass in an angle and a percentage by which you want to
/// pan and update the CurrentExtent.
/// </overloads>
/// <returns>None.</returns>
/// <remarks>None</remarks>
/// <param name="degree">This parameter is the angle in degrees in which you want to pan.</param>
/// <param name="percentage">This parameter is the percentage by which you want to pan.</param>
This method updates the CurrentExtent by using a panning operation.
This method updates the CurrentExtent by using a panning operation .
public void Pan(float degree, int percentage)
        {
            ValidatorHelper.CheckInputValueIsInRange(degree, "degree", 0, RangeCheckingInclusion.IncludeValue, 360, RangeCheckingInclusion.IncludeValue);
            ValidatorHelper.CheckInputValueIsLargerThan(percentage, "percentage", 0, RangeCheckingInclusion.ExcludeValue);
            ValidatorHelper.CheckExtentIsValid(currentExtent, "currentExtent");
            currentExtent = Pan(currentExtent, degree, percentage);
        }
public void Pan ( float degree , int percentage ) { ValidatorHelper . CheckInputValueIsInRange ( degree , " " , 0 , RangeCheckingInclusion . IncludeValue , 360 , RangeCheckingInclusion . IncludeValue ) ; ValidatorHelper . CheckInputValueIsLargerThan ( percentage , " " , 0 , RangeCheckingInclusion . ExcludeValue ) ; ValidatorHelper . CheckExtentIsValid ( currentExtent , " " ) ; currentExtent = Pan ( currentExtent , degree , percentage ) ; }
This method updates the CurrentExtent by using a panning operation.
This method updates the CurrentExtent by using a panning operation .
None
degree
float
This parameter is the angle in degrees in which you want to pan.
This parameter is the angle in degrees in which you want to pan .
percentage
int
This parameter is the percentage by which you want to pan.
This parameter is the percentage by which you want to pan .
overloads
This overload allows you to pass in an angle and a percentage by which you want to
pan and update the CurrentExtent.
This overload allows you to pass in an angle and a percentage by which you want to pan and update the CurrentExtent .
remarks
None