New-UDGauge
Synopsis
Creates a gauge component for an app.
Syntax
New-UDGauge [[-Id] <String>] [[-Width] <Int32>] [[-Height] <Int32>] [[-Value] <Int32>] [[-ValueMinimum] <Int32>] [[-ValueMaximum] <Int32>] [[-StartAngle] <Int32>] [[-EndAngle] <Int32>] [[-CornerRadius] <String>] [[-InnerRadius] <String>] [[-OuterRadius] <String>] [[-ArchCenterX] <String>] [[-ArchCenterY] <String>] [[-Style] <Hashtable>] [<CommonParameters>]Description
The New-UDGauge function creates a gauge component for a PowerShell Universal app.
Parameters
-Id
The unique identifier for the gauge component. If not provided, a new GUID is generated.
Required? false
Position? 1
Default value [Guid]::NewGuid().ToString()
Accept pipeline input? false
Aliases
Accept wildcard characters? false-Width
The width of the gauge component in pixels.
-Height
The height of the gauge component in pixels.
-Value
The current value of the gauge.
-ValueMinimum
The minimum value of the gauge.
-ValueMaximum
The maximum value of the gauge.
-StartAngle
The starting angle of the gauge in degrees.
-EndAngle
The ending angle of the gauge in degrees.
-CornerRadius
The corner radius of the gauge.
-InnerRadius
The inner radius of the gauge.
-OuterRadius
The outer radius of the gauge.
-ArchCenterX
The X coordinate of the center of the gauge arc.
-ArchCenterY
The Y coordinate of the center of the gauge arc.
-Style
A hashtable containing the style properties for the gauge.
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
This example creates a gauge component with the specified properties.
Last updated
Was this helpful?