Android Guides | Samples

Android.Graphics.Drawables.Drawable.IntrinsicWidth Property

Return the intrinsic width of the underlying drawable object.

Syntax

[get: Android.Runtime.Register("getIntrinsicWidth", "()I", "GetGetIntrinsicWidthHandler")]
public virtual Int32 IntrinsicWidth { get; }

Remarks

Return the intrinsic width of the underlying drawable object. Returns -1 if it has no intrinsic width, such as with a solid color.

[Android Documentation]

Requirements

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