コード例 #1
0
 /// <summary>
 /// Request to scroll horizontally by the specified amount
 /// </summary>
 /// <param name="amount">Amount to scroll by</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 ScrollHorizontal(ScrollAmount amount)
 {
     UiaCoreApi.ScrollPattern_Scroll(_hPattern, amount, ScrollAmount.NoAmount);
 }
コード例 #2
0
 /// <summary>
 /// Request to scroll vertically by the specified amount
 /// </summary>
 /// <param name="amount">Amount to scroll by</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 ScrollVertical(ScrollAmount amount)
 {
     UiaCoreApi.ScrollPattern_Scroll(_hPattern, ScrollAmount.NoAmount, amount);
 }
コード例 #3
0
 /// <summary> Request to scroll horizontally and vertically by the specified amount.
 /// The ability to call this method and simultaneously scroll horizontally
 /// and vertically provides simple panning support.  If only horizontal or vertical percent
 /// needs to be changed the constant SetScrollPercentUnchanged can be used for
 /// either parameter and that axis wil be unchanged.</summary>
 ///
 /// <param name="horizontalAmount">amount to scroll by horizontally</param>
 /// <param name="verticalAmount">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 Scroll(ScrollAmount horizontalAmount, ScrollAmount verticalAmount)
 {
     UiaCoreApi.ScrollPattern_Scroll(_hPattern, horizontalAmount, verticalAmount);
 }