Method GetMetric
GetMetric(SystemSettingsMetric)
Returns the value of a system metric, or -1 if the metric is not supported on the current system.
public static int GetMetric(SystemSettingsMetric index)
Parameters
indexSystemSettingsMetricSystem metric identifier.
Returns
GetMetric(SystemSettingsMetric, AbstractControl?)
Returns the value of a system metric, or -1 if the metric is not supported on the current system.
public static int GetMetric(SystemSettingsMetric index, AbstractControl? control)
Parameters
indexSystemSettingsMetricSystem metric identifier.
controlAbstractControlControl for which metric is requested (optional).
Returns
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).