ToastContentBuilder.AddInlineImage Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Add an image inline with other toast content.
public Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder AddInlineImage (Uri uri, string alternateText = default, bool? addImageQuery = default, Microsoft.Toolkit.Uwp.Notifications.AdaptiveImageCrop? hintCrop = default, bool? hintRemoveMargin = default);
member this.AddInlineImage : Uri * string * Nullable<bool> * Nullable<Microsoft.Toolkit.Uwp.Notifications.AdaptiveImageCrop> * Nullable<bool> -> Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder
Public Function AddInlineImage (uri As Uri, Optional alternateText As String = Nothing, Optional addImageQuery As Nullable(Of Boolean) = Nothing, Optional hintCrop As Nullable(Of AdaptiveImageCrop) = Nothing, Optional hintRemoveMargin As Nullable(Of Boolean) = Nothing) As ToastContentBuilder
Parameters
- uri
- Uri
The URI of the image. Can be from your application package, application data, or the internet. Internet images must be less than 200 KB in size.
- alternateText
- String
A description of the image, for users of assistive technologies.
A value whether Windows is allowed to append a query string to the image URI supplied in the Tile notification.
- hintCrop
- Nullable<AdaptiveImageCrop>
A value whether a margin is removed. images have an 8px margin around them.
Returns
The current instance of ToastContentBuilder