MapSuiteGisEditor/WpfDesktopExtension/Shares/MapEngine.cs
/// <summary>This is a function that allows you to pass in a feature to center on, as well as a height
/// and width in screen units.  The function will center the CurrentExtent based on the specified feature
/// and adjust 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="centerFeature">This parameter is the world point feature 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 in a feature to center on, as well as a height
and width in screen units.  The function will center the CurrentExtent based on the specified feature
and adjust its ratio based on the height and width in screen coordinates.
This is a function that allows you to pass in a feature to center on as well as a height and width in screen units . The function will center the CurrentExtent based on the specified feature and adjust its ratio based on the height and width in screen coordinates .
public void CenterAt(Feature centerFeature, 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, centerFeature, screenWidth, screenHeight);
        }
public void CenterAt ( Feature centerFeature , float screenWidth , float screenHeight ) { ValidatorHelper . CheckInputValueIsLargerThan ( screenWidth , " " , 0 , RangeCheckingInclusion . ExcludeValue ) ; ValidatorHelper . CheckInputValueIsLargerThan ( screenHeight , " " , 0 , RangeCheckingInclusion . ExcludeValue ) ; ValidatorHelper . CheckExtentIsValid ( currentExtent , " " ) ; currentExtent = CenterAt ( currentExtent , centerFeature , screenWidth , screenHeight ) ; }
This is a function that allows you to pass in a feature to center on, as well as a height
and width in screen units.
This is a function that allows you to pass in a feature to center on as well as a height and width in screen units .
None
centerFeature
Feature
This parameter is the world point feature you want to center on.
This parameter is the world point feature 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