PowerStatus.BatteryLifePercent Property

 

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
Show: