Evotec

Project

PSWriteHTML

PSWriteHTML is an open-source PowerShell project with packages, release history, and working documentation.

Stars 995
Forks 114
Open issues 69
PowerShell Gallery downloads 7,436,513
Release v1.41.0
Language: PowerShell Updated: 2026-04-11

API Reference

Function

New-HTMLSectionStyle

Aliases: New-HTMLSectionOption, New-HTMLSectionOptions
Namespace PSWriteHTML
Aliases
New-HTMLSectionOption New-HTMLSectionOptions

Creates a new HTML section style with customizable options.

Remarks

This function creates a new HTML section style with various styling options such as border radius, text color, alignment, background color, and more.

Examples

Authored help example

EXAMPLE 1


New-HTMLSectionStyle -BorderRadius '10px' -HeaderTextColor 'blue' -HeaderTextAlignment 'center' -HeaderBackGroundColor 'lightgray' -Wrap 'wrap' -Direction 'row' -Align 'center' -AlignItems 'flex-start' -Justify 'space-between' -Rotate '90deg' -BackgroundColorContent 'white' -WrapContent 'wrap' -DirectionContent 'column' -AlignContent 'flex-end' -AlignItemsContent 'center' -JustifyContent 'flex-start' -WritingMode 'horizontal-tb' -TextOrientation 'upright' -RequestConfiguration
Creates a new HTML section style with specified options.
        

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-HTMLSectionStyle [-Align <flex-start>] [-AlignContent <flex-start>] [-AlignItems <stretch|flex-start|flex-end|center|baseline>] [-AlignItemsContent <stretch|flex-start|flex-end|center|baseline>] [-BackgroundColorContent <String>] [-BorderRadius <0px>] [-Direction <row|row-reverse|column|column-reverse>] [-DirectionContent <row|row-reverse|column|column-reverse>] [-HeaderBackGroundColor <String>] [-HeaderRemovePadding] [-HeaderTextAlignment <center|left|right|justify>] [-HeaderTextColor <String>] [-Justify <flex-start|flex-end|center>] [-JustifyContent <flex-start|flex-end|center>] [-RemoveShadow] [-RequestConfiguration] [-Rotate <-180deg|-90deg|90deg|180deg>] [-TextOrientation <mixed|upright>] [-Wrap <wrap|nowrap|wrap-reverse>] [-WrapContent <wrap|nowrap|wrap-reverse>] [-WritingMode <vertical-rl|vertical-lr|horizontal-tb>] [<CommonParameters>]
#
Parameter set: Manual

Parameters

Align String optionalposition: namedpipeline: Falsevalues: 6
Specifies the alignment of the section.
Possible values: flex-start, flex-end, center, space-between, space-around, stretch
AlignContent String optionalposition: namedpipeline: Falsevalues: 6
Specifies the alignment of the section content.
Possible values: flex-start, flex-end, center, space-between, space-around, stretch
AlignItems String optionalposition: namedpipeline: Falsevalues: 5
Specifies the alignment of the items within the section.
Possible values: stretch, flex-start, flex-end, center, baseline
AlignItemsContent String optionalposition: namedpipeline: Falsevalues: 5
Specifies the alignment of the items within the section content.
Possible values: stretch, flex-start, flex-end, center, baseline
BackgroundColorContent String optionalposition: namedpipeline: Falsealiases: BackgroundShade
Specifies the background color of the section content.
BorderRadius String optionalposition: namedpipeline: Falsevalues: 6
Specifies the border radius of the section.
Possible values: 0px, 5px, 10px, 15px, 20px, 25px
Direction String optionalposition: namedpipeline: Falsevalues: 4
Specifies the direction of the section layout.
Possible values: row, row-reverse, column, column-reverse
DirectionContent String optionalposition: namedpipeline: Falsevalues: 4
Specifies the direction of the section content layout.
Possible values: row, row-reverse, column, column-reverse
HeaderBackGroundColor String optionalposition: namedpipeline: Falsealiases: TextBackGroundColor
Specifies the background color of the section header.
HeaderRemovePadding SwitchParameter optionalposition: namedpipeline: False
HeaderTextAlignment String optionalposition: namedpipeline: Falsealiases: TextAlignmentvalues: 4
Specifies the text alignment of the section header.
Possible values: center, left, right, justify
HeaderTextColor String optionalposition: namedpipeline: Falsealiases: TextColor
Specifies the text color of the section header.
Justify String optionalposition: namedpipeline: Falsevalues: 3
Specifies the justification of the section.
Possible values: flex-start, flex-end, center
JustifyContent String optionalposition: namedpipeline: Falsevalues: 3
Specifies the justification of the section content.
Possible values: flex-start, flex-end, center
RemoveShadow SwitchParameter optionalposition: namedpipeline: False
RequestConfiguration SwitchParameter optionalposition: namedpipeline: False
Indicates whether to request configuration for the section styling.
Rotate String optionalposition: namedpipeline: Falsevalues: 4
Specifies the rotation angle of the section.
Possible values: -180deg, -90deg, 90deg, 180deg
TextOrientation String optionalposition: namedpipeline: Falsevalues: 2
Specifies the text orientation of the section.
Possible values: mixed, upright
Wrap String optionalposition: namedpipeline: Falsevalues: 3
Specifies the wrapping behavior of the section.
Possible values: wrap, nowrap, wrap-reverse
WrapContent String optionalposition: namedpipeline: Falsevalues: 3
Specifies the wrapping behavior of the section content.
Possible values: wrap, nowrap, wrap-reverse
WritingMode String optionalposition: namedpipeline: Falsevalues: 3
Specifies the writing mode of the section.
Possible values: vertical-rl, vertical-lr, horizontal-tb