MapSuiteGisEditor/WpfDesktopExtension/Shares/MapEngine.cs
/// <summary>This is a function that allows you to pass a world 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>
/// <returns>None.</returns>
/// <remarks>This API will update the <strong>CurrentExtent</strong>.</remarks>
/// <param name="worldPoint">This parameter is the world point 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 is a function that allows you to pass a world 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 world 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(PointShape worldPoint, float screenWidth, float screenHeight)
        {
            ValidatorHelper.CheckObjectIsNotNull(worldPoint, "worldPoint");
            ValidatorHelper.CheckShapeIsValidForOperation(worldPoint);
            ValidatorHelper.CheckInputValueIsLargerThan(screenWidth, "screenWidth", 0, RangeCheckingInclusion.ExcludeValue);
            ValidatorHelper.CheckInputValueIsLargerThan(screenHeight, "screenHeight", 0, RangeCheckingInclusion.ExcludeValue);
            ValidatorHelper.CheckExtentIsValid(currentExtent, "currentExtent");
            currentExtent = CenterAt(currentExtent, worldPoint, screenWidth, screenHeight);
        }
public void CenterAt ( PointShape worldPoint , float screenWidth , float screenHeight ) { ValidatorHelper . CheckObjectIsNotNull ( worldPoint , " " ) ; ValidatorHelper . CheckShapeIsValidForOperation ( worldPoint ) ; ValidatorHelper . CheckInputValueIsLargerThan ( screenWidth , " " , 0 , RangeCheckingInclusion . ExcludeValue ) ; ValidatorHelper . CheckInputValueIsLargerThan ( screenHeight , " " , 0 , RangeCheckingInclusion . ExcludeValue ) ; ValidatorHelper . CheckExtentIsValid ( currentExtent , " " ) ; currentExtent = CenterAt ( currentExtent , worldPoint , screenWidth , screenHeight ) ; }
This is a function that allows you to pass a world point to center on and a height
and width in screen units.
This is a function that allows you to pass a world point to center on and a height and width in screen units .
None
worldPoint
PointShape
This parameter is the world point you want to center on.
This parameter is the world point 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
This API will update the CurrentExtent
This API will update the CurrentExtent