Android Guides | Samples

Android.Content.Res.Resources.DisplayMetrics Property

Return the current display metrics that are in effect for this resource object.

Syntax

[get: Android.Runtime.Register("getDisplayMetrics", "()Landroid/util/DisplayMetrics;", "GetGetDisplayMetricsHandler")]
public virtual DisplayMetrics DisplayMetrics { get; }

Remarks

Return the current display metrics that are in effect for this resource object. The returned object should be treated as read-only.

[Android Documentation]

Requirements

Namespace: Android.Content.Res
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1