AdaptiveNotificationText
AdaptiveNotificationText
AdaptiveNotificationText
AdaptiveNotificationText
Class
Definition
Represents the text content of an adaptive notification.
public : sealed class AdaptiveNotificationText : IAdaptiveNotificationContent, IAdaptiveNotificationTextpublic sealed class AdaptiveNotificationText : IAdaptiveNotificationContent, IAdaptiveNotificationTextPublic NotInheritable Class AdaptiveNotificationText Implements IAdaptiveNotificationContent, IAdaptiveNotificationText// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v3)
|
Constructors
AdaptiveNotificationText() AdaptiveNotificationText() AdaptiveNotificationText() AdaptiveNotificationText()
Creates a new instance of the AdaptiveNotificationText class.
public : AdaptiveNotificationText()public AdaptiveNotificationText()Public Sub New()// You can use this method in JavaScript.
Properties
Hints Hints Hints Hints
Specifies hints for formatting the notification, such as the text style, text wrapping, and alignment. For a complete list of hints, see the text element entry of the Adaptive notifications schema.
public : IMap<string, string> Hints { get; }public IDictionary<string, string> Hints { get; }Public ReadOnly Property Hints As IDictionary<string, string>// You can use this property in JavaScript.
- Value
- IMap<PlatForm::String, PlatForm::String> IDictionary<string, string> IDictionary<string, string> IDictionary<string, string>
A collection of name-value pairs that provide hints for formatting the notification, such as the text style, text wrapping, and alignment. For a complete list of hints, see the text element entry of the Adaptive notifications schema.
Kind Kind Kind Kind
Specifies the type of content the notification contains. This property always returns AdaptiveNotificationContentKind.Text.
public : AdaptiveNotificationContentKind Kind { get; }public AdaptiveNotificationContentKind Kind { get; }Public ReadOnly Property Kind As AdaptiveNotificationContentKind// You can use this property in JavaScript.
- Value
- AdaptiveNotificationContentKind AdaptiveNotificationContentKind AdaptiveNotificationContentKind AdaptiveNotificationContentKind
A value that specifies the type of content the notification contains. This property always returns AdaptiveNotificationContentKind.Text.
Language Language Language Language
Gets or sets the language of the text content.
public : PlatForm::String Language { get; set; }public string Language { get; set; }Public ReadWrite Property Language As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The language of the text content. See the National Language Support (NLS) API Reference for a list of valid values.