共用方式為


PowerStatus.BatteryLifePercent 屬性

定義

取得大約剩下的電池滿電可用電量。

public:
 property float BatteryLifePercent { float get(); };
public float BatteryLifePercent { get; }
member this.BatteryLifePercent : single
Public ReadOnly Property BatteryLifePercent As Single

屬性值

完整電池計量剩餘的大約數量,從 0.0 到 1.0。

適用於

另請參閱