Page.DisplayActionSheet メソッド

定義

オーバーロード

DisplayActionSheet(String, String, String, String[])

アプリケーション ユーザーが複数のボタンから選択できるように、ネイティブ プラットフォーム アクション シートを表示します。

DisplayActionSheet(String, String, String, FlowDirection, String[])

プラットフォーム アクション シートを表示し、アプリケーション ユーザーが複数のボタンから選択できるようにします。

DisplayActionSheet(String, String, String, String[])

アプリケーション ユーザーが複数のボタンから選択できるように、ネイティブ プラットフォーム アクション シートを表示します。

public:
 System::Threading::Tasks::Task<System::String ^> ^ DisplayActionSheet(System::String ^ title, System::String ^ cancel, System::String ^ destruction, ... cli::array <System::String ^> ^ buttons);
public System.Threading.Tasks.Task<string> DisplayActionSheet (string title, string cancel, string destruction, params string[] buttons);
member this.DisplayActionSheet : string * string * string * string[] -> System.Threading.Tasks.Task<string>
Public Function DisplayActionSheet (title As String, cancel As String, destruction As String, ParamArray buttons As String()) As Task(Of String)

パラメーター

title
String

表示されているアクション シートのタイトル。 null にすることはできません。

cancel
String

[キャンセル] ボタンに表示されるテキスト。 null にしてキャンセル操作を非表示にできます。

destruction
String

[Destruct]\(破棄\) ボタンに表示されるテキスト。 null にして破壊的なオプションを非表示にできます。

buttons
String[]

追加のボタン用のテキスト ラベル。 null にすることはできません。

戻り値

アクション シートを表示し、ユーザーによって押されたボタンのテキストを返す待機可能なタスク。

注釈

開発者は、Windows の行末 CR-LF は Windows システムでのみ動作し、iOS および Android と互換性がないことに注意する必要があります。 その特定の結果として、CR-LF の後に表示される文字 (タイトルなど) は、Windows 以外のプラットフォームでは表示されない可能性があります。 開発者は、対象システムごとに正しい行末を使用する必要があります。

適用対象

DisplayActionSheet(String, String, String, FlowDirection, String[])

プラットフォーム アクション シートを表示し、アプリケーション ユーザーが複数のボタンから選択できるようにします。

public:
 System::Threading::Tasks::Task<System::String ^> ^ DisplayActionSheet(System::String ^ title, System::String ^ cancel, System::String ^ destruction, Microsoft::Maui::FlowDirection flowDirection, ... cli::array <System::String ^> ^ buttons);
public System.Threading.Tasks.Task<string> DisplayActionSheet (string title, string cancel, string destruction, Microsoft.Maui.FlowDirection flowDirection, params string[] buttons);
member this.DisplayActionSheet : string * string * string * Microsoft.Maui.FlowDirection * string[] -> System.Threading.Tasks.Task<string>
Public Function DisplayActionSheet (title As String, cancel As String, destruction As String, flowDirection As FlowDirection, ParamArray buttons As String()) As Task(Of String)

パラメーター

title
String

表示されているアクション シートのタイトル。 nullタイトルを非表示にすることができます。

cancel
String

[キャンセル] ボタンに表示されるテキスト。 アクションを非表示にするには null を null 指定できます。

destruction
String

[Destruct]\(破棄\) ボタンに表示されるテキスト。 null にして破壊的なオプションを非表示にできます。

flowDirection
FlowDirection

アクション シートで使用されるフロー方向。

buttons
String[]

追加のボタン用のテキスト ラベル。

戻り値

Taskアクション シートを表示し、ユーザーが押したボタンの文字列キャプションを返す 。

注釈

開発者は、Windows の行末 CR-LF は Windows システムでのみ動作し、iOS および Android と互換性がないことに注意する必要があります。 この特定の結果として、CR-LF の後に表示される文字 (タイトルなど) が Windows 以外のプラットフォームでは表示されないことがあります。 開発者は、対象システムごとに正しい行末を使用する必要があります。

適用対象