New-UDImage
Synopsis
An image component.
Syntax
New-UDImage [-Id <String>] [-Url <String>] [-Height <Int32>] [-Width <Int32>] [-Attributes <Hashtable>] [-ClassName <String>] [<CommonParameters>]
New-UDImage [-Id <String>] [-Path <String>] [-Height <Int32>] [-Width <Int32>] [-Attributes <Hashtable>] [-ClassName <String>] [<CommonParameters>]Description
An image component.
Parameters
-Id
The ID of this component.
Required? false
Position? named
Default value ([Guid]::NewGuid())
Accept pipeline input? false
Aliases
Accept wildcard characters? false-Url
The URL to the image.
-Path
The path to a local image.
-Height
The height in pixels.
-Width
The width in pixels.
-Attributes
Additional attributes to apply to the img tag.
-ClassName
A CSS class to apply to the image.
Common parameters
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.
Outputs
Examples
Example 1: Basic image
Displays an image.
Example 2: Local image
Displays a local image.
Example 3: Image with height and width
Displays an image with a height and width.
Example 4: Image with style
Displays an image with a style attribute.
Last updated
Was this helpful?