--- external help file: ImportExcel-help.xml Module Name: ImportExcel online version: schema: 2.0.0 --- # New-ExcelStyle ## SYNOPSIS {{ Fill in the Synopsis }} ## SYNTAX ``` New-ExcelStyle [[-Range] ] [[-NumberFormat] ] [[-BorderAround] ] [[-BorderColor] ] [[-BorderBottom] ] [[-BorderTop] ] [[-BorderLeft] ] [[-BorderRight] ] [[-FontColor] ] [[-Value] ] [[-Formula] ] [-ArrayFormula] [-ResetFont] [-Bold] [-Italic] [-Underline] [[-UnderLineType] ] [-StrikeThru] [[-FontShift] ] [[-FontName] ] [[-FontSize] ] [[-BackgroundColor] ] [[-BackgroundPattern] ] [[-PatternColor] ] [-WrapText] [[-HorizontalAlignment] ] [[-VerticalAlignment] ] [[-TextRotation] ] [-AutoSize] [[-Width] ] [[-Height] ] [-Hidden] [-Locked] [-Merge] ``` ## DESCRIPTION {{ Fill in the Description }} ## EXAMPLES ### Example 1 ```powershell PS C:\> {{ Add example code here }} ``` {{ Add example description here }} ## PARAMETERS ### -ArrayFormula {{ Fill ArrayFormula Description }} ```yaml Type: SwitchParameter Parameter Sets: (All) Aliases: Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -AutoSize {{ Fill AutoSize Description }} ```yaml Type: SwitchParameter Parameter Sets: (All) Aliases: AutoFit Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -BackgroundColor {{ Fill BackgroundColor Description }} ```yaml Type: Object Parameter Sets: (All) Aliases: Required: False Position: 15 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -BackgroundPattern {{ Fill BackgroundPattern Description }} ```yaml Type: ExcelFillStyle Parameter Sets: (All) Aliases: Accepted values: None, Solid, DarkGray, MediumGray, LightGray, Gray125, Gray0625, DarkVertical, DarkHorizontal, DarkDown, DarkUp, DarkGrid, DarkTrellis, LightVertical, LightHorizontal, LightDown, LightUp, LightGrid, LightTrellis Required: False Position: 16 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -Bold {{ Fill Bold Description }} ```yaml Type: SwitchParameter Parameter Sets: (All) Aliases: Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -BorderAround {{ Fill BorderAround Description }} ```yaml Type: ExcelBorderStyle Parameter Sets: (All) Aliases: Accepted values: None, Hair, Dotted, DashDot, Thin, DashDotDot, Dashed, MediumDashDotDot, MediumDashed, MediumDashDot, Thick, Medium, Double Required: False Position: 2 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -BorderBottom {{ Fill BorderBottom Description }} ```yaml Type: ExcelBorderStyle Parameter Sets: (All) Aliases: Accepted values: None, Hair, Dotted, DashDot, Thin, DashDotDot, Dashed, MediumDashDotDot, MediumDashed, MediumDashDot, Thick, Medium, Double Required: False Position: 4 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -BorderColor {{ Fill BorderColor Description }} ```yaml Type: Object Parameter Sets: (All) Aliases: Required: False Position: 3 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -BorderLeft {{ Fill BorderLeft Description }} ```yaml Type: ExcelBorderStyle Parameter Sets: (All) Aliases: Accepted values: None, Hair, Dotted, DashDot, Thin, DashDotDot, Dashed, MediumDashDotDot, MediumDashed, MediumDashDot, Thick, Medium, Double Required: False Position: 6 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -BorderRight {{ Fill BorderRight Description }} ```yaml Type: ExcelBorderStyle Parameter Sets: (All) Aliases: Accepted values: None, Hair, Dotted, DashDot, Thin, DashDotDot, Dashed, MediumDashDotDot, MediumDashed, MediumDashDot, Thick, Medium, Double Required: False Position: 7 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -BorderTop {{ Fill BorderTop Description }} ```yaml Type: ExcelBorderStyle Parameter Sets: (All) Aliases: Accepted values: None, Hair, Dotted, DashDot, Thin, DashDotDot, Dashed, MediumDashDotDot, MediumDashed, MediumDashDot, Thick, Medium, Double Required: False Position: 5 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -FontColor {{ Fill FontColor Description }} ```yaml Type: Object Parameter Sets: (All) Aliases: ForegroundColor Required: False Position: 8 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -FontName {{ Fill FontName Description }} ```yaml Type: String Parameter Sets: (All) Aliases: Required: False Position: 13 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -FontShift {{ Fill FontShift Description }} ```yaml Type: ExcelVerticalAlignmentFont Parameter Sets: (All) Aliases: Accepted values: None, Baseline, Subscript, Superscript Required: False Position: 12 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -FontSize {{ Fill FontSize Description }} ```yaml Type: Single Parameter Sets: (All) Aliases: Required: False Position: 14 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -Formula {{ Fill Formula Description }} ```yaml Type: Object Parameter Sets: (All) Aliases: Required: False Position: 10 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -Height {{ Fill Height Description }} ```yaml Type: Single Parameter Sets: (All) Aliases: Required: False Position: 22 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -Hidden {{ Fill Hidden Description }} ```yaml Type: SwitchParameter Parameter Sets: (All) Aliases: Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -HorizontalAlignment {{ Fill HorizontalAlignment Description }} ```yaml Type: ExcelHorizontalAlignment Parameter Sets: (All) Aliases: Accepted values: General, Left, Center, CenterContinuous, Right, Fill, Distributed, Justify Required: False Position: 18 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -Italic {{ Fill Italic Description }} ```yaml Type: SwitchParameter Parameter Sets: (All) Aliases: Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -Locked {{ Fill Locked Description }} ```yaml Type: SwitchParameter Parameter Sets: (All) Aliases: Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -Merge {{ Fill Merge Description }} ```yaml Type: SwitchParameter Parameter Sets: (All) Aliases: Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -NumberFormat {{ Fill NumberFormat Description }} ```yaml Type: Object Parameter Sets: (All) Aliases: NFormat Required: False Position: 1 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -PatternColor {{ Fill PatternColor Description }} ```yaml Type: Object Parameter Sets: (All) Aliases: PatternColour Required: False Position: 17 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -Range {{ Fill Range Description }} ```yaml Type: Object Parameter Sets: (All) Aliases: Address Required: False Position: 0 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -ResetFont {{ Fill ResetFont Description }} ```yaml Type: SwitchParameter Parameter Sets: (All) Aliases: Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -StrikeThru {{ Fill StrikeThru Description }} ```yaml Type: SwitchParameter Parameter Sets: (All) Aliases: Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -TextRotation {{ Fill TextRotation Description }} ```yaml Type: Int32 Parameter Sets: (All) Aliases: Required: False Position: 20 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -UnderLineType {{ Fill UnderLineType Description }} ```yaml Type: ExcelUnderLineType Parameter Sets: (All) Aliases: Accepted values: None, Single, Double, SingleAccounting, DoubleAccounting Required: False Position: 11 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -Underline {{ Fill Underline Description }} ```yaml Type: SwitchParameter Parameter Sets: (All) Aliases: Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -Value {{ Fill Value Description }} ```yaml Type: Object Parameter Sets: (All) Aliases: Required: False Position: 9 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -VerticalAlignment {{ Fill VerticalAlignment Description }} ```yaml Type: ExcelVerticalAlignment Parameter Sets: (All) Aliases: Accepted values: Top, Center, Bottom, Distributed, Justify Required: False Position: 19 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -Width {{ Fill Width Description }} ```yaml Type: Single Parameter Sets: (All) Aliases: Required: False Position: 21 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -WrapText {{ Fill WrapText Description }} ```yaml Type: SwitchParameter Parameter Sets: (All) Aliases: Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ## INPUTS ### None ## OUTPUTS ### System.Object ## NOTES ## RELATED LINKS