Table of Contents

Method GetMetric

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GetMetric(SystemSettingsMetric)

Returns the value of a system metric, or -1 if the metric is not supported on the current system.

int GetMetric(SystemSettingsMetric index)

Parameters

index SystemSettingsMetric

System metric identifier.

Returns

int

GetMetric(SystemSettingsMetric, Control?)

Returns the value of a system metric, or -1 if the metric is not supported on the current system.

int GetMetric(SystemSettingsMetric index, Control? control)

Parameters

index SystemSettingsMetric

System metric identifier.

control Control

Control for which metric is requested (optional).

Returns

int

Remarks

The value of control determines if the metric returned is a global value or a control based value, in which case it might determine the widget, the display the window is on, or something similar. The window given should be as close to the metric as possible (e.g.a Window in case of the CaptionY metric).