//------------------------------------------------------ // // Public Methods // //------------------------------------------------------ #region Public Methods /// <summary> Request to set the current horizontal and Vertical scroll position /// by percent (0-100). Passing in the value of "-1" will indicate that /// scrolling in that direction should be ignored. /// The ability to call this method and simultaneously scroll horizontally and /// vertically provides simple panning support.</summary> /// <param name="horizontalPercent">Amount to scroll by horizontally</param> /// <param name="verticalPercent">Amount to scroll by vertically </param> /// /// <outside_see conditional="false"> /// This API does not work inside the secure execution environment. /// <exception cref="System.Security.Permissions.SecurityPermission"/> /// </outside_see> public void SetScrollPercent(double horizontalPercent, double verticalPercent) { UiaCoreApi.ScrollPattern_SetScrollPercent(_hPattern, horizontalPercent, verticalPercent); }