Method GetMetric
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
SystemSettingsMetricSystem metric identifier.
Returns
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
SystemSettingsMetricSystem metric identifier.
control
ControlControl 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).