ToastTemplateType 列挙型

定義

トースト通知で使用するテンプレートを指定します。

public enum class ToastTemplateType
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class ToastTemplateType
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum ToastTemplateType
var value = Windows.UI.Notifications.ToastTemplateType.toastImageAndText01
Public Enum ToastTemplateType
継承
ToastTemplateType
属性

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10240.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v1.0 で導入)

フィールド

ToastImageAndText01 0

3 行のテキストにラップされた大きな画像と 1 つの文字列。 ToastImageAndText01 の例

ToastImageAndText02 1

大きな画像。1 行目に太字の文字列が 1 つ、2 行目と 3 行目に折り返された通常のテキストの 1 つの文字列。 ToastImageAndText02 の例

ToastImageAndText03 2

大きな画像。最初の 2 行に折り返された太字のテキストの 1 つの文字列、3 行目の通常のテキストの 1 つの文字列。 ToastImageAndText03 の例

ToastImageAndText04 3

大きな画像、最初の行に太字のテキストの 1 つの文字列、2 行目に通常のテキストの 1 つの文字列、3 行目に通常のテキストの 1 つの文字列。 ToastImageAndText04 の例

ToastText01 4

3 行のテキストにラップされた 1 つの文字列。 ToastText01 の例

ToastText02 5

最初の行に太字のテキストの 1 つの文字列、2 行目と 3 行目に折り返された通常のテキストの 1 つの文字列。 ToastText02 の例

ToastText03 6

1 行目と 2 行目に折り返された太字のテキストの 1 つの文字列、3 行目の通常のテキストの 1 つの文字列。 ToastText03 の例

ToastText04 7

最初の行に太字のテキストの 1 つの文字列、2 行目に通常のテキストの 1 つの文字列、3 行目に通常のテキストの 1 つの文字列。 ToastText04 の例

注釈

トースト テンプレートは、Windows Phone 8.1 に送信できますが、トースト テキスト 02 の変更バージョンとしてレンダリングされます。画像なし、2 つのテキスト文字列 (両方とも同じ行、太字の最初の文字列)、アプリの Square 150x150 ロゴ。 例を次に示します 電話トーストの例

適用対象

こちらもご覧ください