PowerStatus.BatteryLifePercent Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the approximate amount of full battery charge remaining.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public float BatteryLifePercent { get; }

Property Value

Type: System.Single

The approximate amount, from 0.0 to 1.0, of full battery charge remaining.

.NET Framework
Available since 2.0
Return to top