示例#1
0
 /// <summary>
 /// scrolls the window to a particular place in the document.
 /// </summary>
 /// <param name="options"></param>
 /// <returns></returns>
 public async ValueTask Scroll(ScrollToOptions options)
 {
     await JsRuntime.InvokeInstanceMethod(JsObjectRef, "scroll", options).ConfigureAwait(false);
 }
示例#2
0
 /// <summary>
 /// scrolls the document in the window by the given amount.
 /// </summary>
 /// <param name="options"></param>
 /// <returns></returns>
 public async ValueTask ScrollBy(ScrollToOptions options)
 {
     await JsRuntime.InvokeInstanceMethod(JsObjectRef, "scrollBy", options);
 }
示例#3
0
 /// <summary>
 /// scrolls the document in the window by the given amount.
 /// </summary>
 /// <param name="options"></param>
 /// <returns></returns>
 public async Task ScrollBy(ScrollToOptions options)
 {
     await jsRuntime.InvokeInstanceMethodAsync(JsRuntimeObjectRef, "scrollBy", options);
 }