Back to Devexpress

ToastNotification Members

windowsforms-devexpress-dot-xtrabars-dot-toastnotifications-dot-toastnotification-dot-underscore-members.md

latest10.6 KB
Original Source

ToastNotification Members

A toast notification.

Constructors

NameDescription
ToastNotification()Initializes a new instance of the ToastNotification class with the default settings.
ToastNotification(Object, Image, String, Image, String, Image, String, String, String, String, String, ToastNotificationSound, ToastNotificationDuration, Nullable<DateTimeOffset>, AppLogoCrop, ToastNotificationTemplate)Initializes a new toast notification and specifies its content that matches the Generic template.
ToastNotification(Object, Image, String, String, String, ToastNotificationSound, ToastNotificationDuration, ToastNotificationTemplate)Initializes a new instance of the ToastNotification class with the specified settings.
ToastNotification(Object, Image, String, String, String, ToastNotificationTemplate)Initializes a new instance of the ToastNotification class with the specified settings.
ToastNotification(Object, Image, String, String, String, String, ToastNotificationSound, ToastNotificationDuration, ToastNotificationTemplate)Initializes a new instance of the ToastNotification class with the specified settings.
ToastNotification(Object, Image, String, String, String, String, ToastNotificationTemplate)Initializes a new instance of the ToastNotification class with the specified settings.

Properties

NameDescription
AppLogoImageGets or sets the application logo image. This image is shown when the notification has the Generic template applied.
AppLogoImageCropGets or sets the way the ToastNotification.AppLogoImage is cropped.
AppLogoImagePathGets or sets the path to the image that is used as the application logo image. This image is shown when the notification has the Generic template applied.
AttributionTextGets or sets the attribution text, displayed to the application name’s right. This text is shown when the notification has the Generic template applied.
BodyGets or sets this ToastNotification‘s first body text string.
Body2Gets or sets this ToastNotification‘s second body text string.
DisplayTimestampGets or sets the date and time associated with this notification. The notification time is visible in the Windows Action Center.
DurationGets or sets this ToastNotification duration.
HasAppLogoImageReturns whether this ToastNotification has an application logo image.
HasAppLogoImagePathReturns whether or not this notification has the application image path specified.
HasHeroImageReturns whether or not this notification has the hero image specified.
HasHeroImagePathReturns whether or not this notification has the path to the hero image specified.
HasImageGets whether this ToastNotification currently has an image.
HasImagePathGets whether or not this notification has its image path specified.
HasSoundOrDurationGets whether or not this notification has its ToastNotification.Sound or ToastNotification.Duration specified.
HeaderGets or sets this ToastNotification‘s header text string.
HeroImage

Gets or sets the “hero image” - an image docked to the notification’s top. This image is shown when the notification has the Generic template applied.

| | HeroImagePath |

Gets or sets the path to the “hero image” - an image docked to the notification’s top. This image is shown when the notification has the Generic template applied.

| | ID | Gets or sets this ToastNotification‘s ID. | | Image | Gets or sets the image, displayed within this ToastNotification. | | ImagePath | Gets or sets the path to an image displayed by this ToastNotification. | | Sound | Gets or sets the sound played when this ToastNotification is shown. | | Template | Gets or sets the template currently applied to this ToastNotification. |

Methods

NameDescription
Equals(Object, Object) staticDetermines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object)Determines whether the specified object is equal to the current object. Inherited from Object.
GetHashCode()Serves as the default hash function. Inherited from Object.
GetType()Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protectedCreates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) staticDetermines whether the specified Object instances are the same instance. Inherited from Object.

See Also

ToastNotification Class

DevExpress.XtraBars.ToastNotifications Namespace