Command
New-TableHeader
Creates a new table header with specified styling options.
Syntax
New-TableHeader [-AddRow] [[-Alignment] <left|center|right|justify>] [[-BackGroundColor] <String>] [[-Color] <String>] [[-ColumnCount] <Int32>] [[-Direction] <rtl>] [[-FontFamily] <String>] [[-FontSize] <Object>] [[-FontStyle] <normal|italic|oblique>] [[-FontVariant] <normal|small-caps>] [[-FontWeight] <String>] [[-Names] <String[]>] [[-ResponsiveOperations] <String>] [[-TextDecoration] <line-through|overline|underline>] [[-TextTransform] <uppercase|lowercase|capitalize>] [[-Title] <String>] [<CommonParameters>]#Parameter set:
All Parameter SetsDescription
The New-TableHeader function creates a new table header with customizable styling options such as font size, color, alignment, and more.
Examples
EXAMPLE 1
New-TableHeader -Names "Name", "Age", "Email" -Title "Employee Information" -Color "black" -BackGroundColor "lightgray" -FontSize 14 -FontWeight "bold" -FontStyle "normal" -FontVariant "normal" -FontFamily "Arial" -Alignment "center" -TextDecoration "none" -TextTransform "uppercase" -Direction "ltr" -AddRow -ColumnCount 3 -Display "all"
Creates a table header with specified column names, title, and styling options.Parameters
- -AddRow SwitchParameter
- Switch parameter to add an additional row to the table header.
- -Alignment String
- Specifies the alignment of the table header.
- Possible values:
left,center,right,justify - -BackGroundColor String
- Specifies the background color of the table header.
- -Color String
- Specifies the text color of the table header.
- -ColumnCount Int32
- Specifies the number of columns in the table header.
- -Direction String
- Specifies the text direction of the table header.
- Possible values:
rtl - -FontFamily String
- Specifies the font family of the table header.
- -FontSize Object
- Specifies the font size of the table header.
- -FontStyle String
- Specifies the font style of the table header.
- Possible values:
normal,italic,oblique - -FontVariant String
- Specifies the font variant of the table header.
- Possible values:
normal,small-caps - -FontWeight String
- Specifies the font weight of the table header.
- Possible values:
normal,bold,bolder,lighter,100,200,300,400,500,600,700,800,900 - -Names String[]
- Specifies an array of column names for the table header.
- -ResponsiveOperations String
- Possible values:
all,never,desktop,not-desktop,tablet-l,tablet-p,mobile-l,mobile-p,min-desktop,max-desktop,tablet,not-tablet,min-tablet,max-tablet,not-tablet-l,min-tablet-l,max-tablet-l,not-tablet-p,min-tablet-p,max-tablet-p,mobile,not-mobile,min-mobile,max-mobile,not-mobile-l,min-mobile-l,max-mobile-l,not-mobile-p,min-mobile-p,max-mobile-p - -TextDecoration String
- Specifies the text decoration of the table header.
- Possible values:
line-through,overline,underline - -TextTransform String
- Specifies the text transformation of the table header.
- Possible values:
uppercase,lowercase,capitalize - -Title String
- Specifies the title of the table header.
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.