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

EmailListItem

Namespace PSWriteHTML

Creates an HTML list item with customizable text styling.

Remarks

The EmailListItem function generates an HTML list item with customizable text styling options such as color, font size, font weight, font style, alignment, text decoration, text transformation, and more.

Examples

Authored help example

EXAMPLE 1


EmailListItem -Text "Example Text" -Color "red" -FontSize 14 -FontWeight "bold" -Alignment "center"
Creates an HTML list item with the text "Example Text" in red color, font size 14, bold font weight, and centered alignment.
        

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

EmailListItem [-Alignment <left|center|right|justify>] [-BackGroundColor <String[]>] [-Color <String[]>] [-Direction <rtl>] [-FontFamily <String[]>] [-FontSize <Int32[]>] [-FontStyle <normal|italic|oblique>] [-FontVariant <normal|small-caps>] [-FontWeight <normal>] [-LineBreak] [-Text <String[]>] [-TextDecoration <line-through|overline|underline>] [-TextTransform <uppercase|lowercase|capitalize>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Alignment String[] optionalposition: 8pipeline: Falsevalues: 4
Specifies the alignment of the text. Valid values are 'left', 'center', 'right', 'justify'. Default is an empty array.
Possible values: left, center, right, justify
BackGroundColor String[] optionalposition: 2pipeline: False
Specifies the background color of the list item. Default is an empty array.
Color String[] optionalposition: 1pipeline: False
Specifies the color of the text. Default is an empty array.
Direction String[] optionalposition: 11pipeline: Falsevalues: 1
Specifies the direction of the text. Valid value is 'rtl'. Default is an empty array.
Possible values: rtl
FontFamily String[] optionalposition: 7pipeline: False
Specifies the font family of the text. Default is an empty array.
FontSize Int32[] optionalposition: 3pipeline: False
Specifies the font size of the text. Default is an empty array.
FontStyle String[] optionalposition: 5pipeline: Falsevalues: 3
Specifies the font style of the text. Valid values are 'normal', 'italic', 'oblique'. Default is an empty array.
Possible values: normal, italic, oblique
FontVariant String[] optionalposition: 6pipeline: Falsevalues: 2
Specifies the font variant of the text. Valid values are 'normal', 'small-caps'. Default is an empty array.
Possible values: normal, small-caps
FontWeight String[] optionalposition: 4pipeline: Falsevalues: 13
Specifies the font weight of the text. Valid values are 'normal', 'bold', 'bolder', 'lighter', and numeric values from 100 to 900. Default is an empty array.
Possible values: normal, bold, bolder, lighter, 100, 200, 300, 400, 500, 600, 700, 800, 900
LineBreak SwitchParameter optionalposition: namedpipeline: False
Indicates whether a line break should be added after the list item.
Text String[] optionalposition: 0pipeline: False
Specifies the text content of the list item.
TextDecoration String[] optionalposition: 9pipeline: Falsevalues: 3
Specifies the text decoration of the text. Valid values are 'none', 'line-through', 'overline', 'underline'. Default is an empty array.
Possible values: line-through, overline, underline
TextTransform String[] optionalposition: 10pipeline: Falsevalues: 3
Specifies the text transformation of the text. Valid values are 'uppercase', 'lowercase', 'capitalize'. Default is an empty array.
Possible values: uppercase, lowercase, capitalize