Android.Content.Res.Resources.GetDimensionPixelOffset Method
Retrieve a dimensional for a particular resource ID for use as an offset in raw pixels.

Syntax

[Android.Runtime.Register("getDimensionPixelOffset", "(I)I", "GetGetDimensionPixelOffset_IHandler")]
public virtual int GetDimensionPixelOffset (int id)

See Also

Resources.GetDimension(int)
Resources.GetDimensionPixelSize(int)

Parameters

id
The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
!:NoType:android/content/res/Resources$NotFoundException;Href=../../../../reference/android/content/res/Resources.NotFoundException.htmlThrows NotFoundException if the given ID does not exist.

Remarks

Retrieve a dimensional for a particular resource ID for use as an offset in raw pixels. This is the same as Resources.GetDimension(int), except the returned value is converted to integer pixels for you. An offset conversion involves simply truncating the base value to an integer.

[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