共用方式為


OnIdiom<T>.Implicit(OnIdiom<T> to T) Operator

Definition

Implicitly converts OnIdiom to T, depending on Device.Idiom.

public static implicit operator T (Xamarin.Forms.OnIdiom<T> onIdiom);
static member op_Implicit : Xamarin.Forms.OnIdiom<'T> -> 'T

Parameters

onIdiom
OnIdiom<T>

The idiom to convert.

Returns

T

The value of the Phone or Tablet property, depending on the current Device.Idiom.

Applies to