| File: System\Windows\Forms\Controls\WebBrowser\WebBrowserProgressChangedEventArgs.cs | Web Access |
| Project: src\winforms\src\System.Windows.Forms\System.Windows.Forms.csproj (System.Windows.Forms) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Windows.Forms; /// <summary> /// Provides data for the <see cref="WebBrowser.OnProgressChanged"/> event. /// </summary> public class WebBrowserProgressChangedEventArgs : EventArgs { /// <summary> /// Creates an instance of the <see cref="WebBrowserProgressChangedEventArgs"/> class. /// </summary> public WebBrowserProgressChangedEventArgs(long currentProgress, long maximumProgress) { CurrentProgress = currentProgress; MaximumProgress = maximumProgress; } /// <summary> /// Specifies current number of bytes downloaded. CurrentProgress/MaximumProgress*100 = progress percentage. /// </summary> public long CurrentProgress { get; } /// <summary> /// Specifies total number of bytes of item being downloaded. /// CurrentProgress/MaximumProgress*100 = progress percentage. /// </summary> public long MaximumProgress { get; } }