Page.SetUseSafeArea 方法

定義

多載

SetUseSafeArea(BindableObject, Boolean)

設定控制是否將填補值覆寫為安全區域內凹的值。

SetUseSafeArea(IPlatformElementConfiguration<iOS,Page>, Boolean)

設定控制是否將填補值覆寫為安全區域內凹的值。

SetUseSafeArea(BindableObject, Boolean)

設定控制是否將填補值覆寫為安全區域內凹的值。

public static void SetUseSafeArea (Xamarin.Forms.BindableObject element, bool value);
static member SetUseSafeArea : Xamarin.Forms.BindableObject * bool -> unit

參數

element
BindableObject

要設定其安全區域使用行為的項目。

value
System.Boolean

新的安全區域內凹行為。

適用於

SetUseSafeArea(IPlatformElementConfiguration<iOS,Page>, Boolean)

設定控制是否將填補值覆寫為安全區域內凹的值。

public static Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.iOS,Xamarin.Forms.Page> SetUseSafeArea (this Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.iOS,Xamarin.Forms.Page> config, bool value);
static member SetUseSafeArea : Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.iOS, Xamarin.Forms.Page> * bool -> Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.iOS, Xamarin.Forms.Page>

參數

config
IPlatformElementConfiguration<iOS,Page>

要設定其安全區域使用行為的項目。

value
System.Boolean

新的安全區域內凹行為。

傳回

開發人員可對其進行後續方法呼叫的已更新組態物件。

適用於