MapSuiteGisEditor/WpfDesktopExtension/Shares/MapEngine.cs
/// <summary>This is a function that allows you to pass a screen point to center on and a height
/// and width in screen units.  The function will update the current extent by centering on the point and
/// adjusting its ratio based on the height and width in screen coordinates.
///</summary>
/// <overloads>This overload allows you to pass in a screen point as the center.</overloads>
/// <remarks>This API will update the <strong>CurrentExtent</strong>.</remarks>
/// <param name="screenX">This parameter is the X coordinate on the screen to center on.</param>
/// <param name="screenY">This parameter is the Y coordinate on the screen 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 is a function that allows you to pass a screen point to center on and a height
and width in screen units.  The function will update the current extent by centering on the point and
adjusting its ratio based on the height and width in screen coordinates.
This is a function that allows you to pass a screen point to center on and a height and width in screen units . The function will update the current extent by centering on the point and adjusting its ratio based on the height and width in screen coordinates .
public void CenterAt(float screenX, float screenY, float screenWidth, float screenHeight)
        {
            ValidatorHelper.CheckInputValueIsLargerThan(screenWidth, "screenWidth", 0, RangeCheckingInclusion.ExcludeValue);
            ValidatorHelper.CheckInputValueIsLargerThan(screenHeight, "screenHeight", 0, RangeCheckingInclusion.ExcludeValue);
            ValidatorHelper.CheckExtentIsValid(currentExtent, "currentExtent");
            currentExtent = CenterAt(currentExtent, screenX, screenY, screenWidth, screenHeight);
        }
public void CenterAt ( float screenX , float screenY , float screenWidth , float screenHeight ) { ValidatorHelper . CheckInputValueIsLargerThan ( screenWidth , " " , 0 , RangeCheckingInclusion . ExcludeValue ) ; ValidatorHelper . CheckInputValueIsLargerThan ( screenHeight , " " , 0 , RangeCheckingInclusion . ExcludeValue ) ; ValidatorHelper . CheckExtentIsValid ( currentExtent , " " ) ; currentExtent = CenterAt ( currentExtent , screenX , screenY , screenWidth , screenHeight ) ; }
This is a function that allows you to pass a screen point to center on and a height
and width in screen units.
This is a function that allows you to pass a screen point to center on and a height and width in screen units .
screenX
float
This parameter is the X coordinate on the screen to center on.
This parameter is the X coordinate on the screen to center on .
screenY
float
This parameter is the Y coordinate on the screen to center on.
This parameter is the Y coordinate on the screen 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 .
overloads
This overload allows you to pass in a screen point as the center.
This overload allows you to pass in a screen point as the center .
remarks
This API will update the
CurrentExtent
This API will update the CurrentExtent