API Reference
New-HTMLPanel
Creates a new HTML panel with customizable styling options.
Remarks
The New-HTMLPanel function creates a new HTML panel with various styling options such as background color, width, margin, alignment, and more.
Examples
EXAMPLE 1
New-HTMLPanel -Content { "This is the content of the panel" } -BackgroundColor "lightblue" -Width "50%" -Margin "10px" -AlignContentText "center" -BorderRadius "5px" -AnchorName "myPanel" -StyleSheetsConfiguration @{ Panel = "customPanel" }
Creates a new HTML panel with specified content, background color, width, margin, alignment, border radius, anchor name, and custom style sheet configuration.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
New-HTMLPanel [-AlignContentText <center|left|right|justify>] [-AnchorName <String>] [-BackgroundColor <String>] [-BorderRadius <0px>] [-Content <ScriptBlock>] [-Density <Spacious|Comfortable|Compact|Dense|VeryDense>] [-Height <Object>] [-Invisible] [-Margin <String>] [-StyleSheetsConfiguration <IDictionary>] [-Width <String>] [<CommonParameters>]
#
All Parameter SetsParameters
- AlignContentText String
- Specifies the alignment of the content within the panel.
- Possible values:
center,left,right,justify - AnchorName String
- Specifies the anchor name of the panel.
- BackgroundColor String
- Specifies the background color of the HTML panel.
- BorderRadius String
- Specifies the border radius of the panel.
- Possible values:
0px,5px,10px,15px,20px,25px - Content ScriptBlock
- Specifies the content of the HTML panel as a ScriptBlock.
- Density String
- Specifies the density of the panel. This will automatically enable responsive wrapping for the panel. The options are: Spacious, Comfortable, Compact, Dense, VeryDense.
- Possible values:
Spacious,Comfortable,Compact,Dense,VeryDense - Height Object
- Invisible SwitchParameter
- Indicates whether the panel should be invisible.
- Margin String
- Specifies the margin of the panel.
- StyleSheetsConfiguration IDictionary
- Specifies the style sheets configuration for the panel.
- Width String
- Specifies the width of the panel.