directory renames

This commit is contained in:
jhoneill
2019-12-01 17:01:50 +00:00
parent 6b033d7451
commit 88e2a23e1b
108 changed files with 35 additions and 9 deletions

17
Public/Set-CellStyle.ps1 Normal file
View File

@@ -0,0 +1,17 @@
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseShouldProcessForStateChangingFunctions', '', Scope='Function', Target='Set*', Justification='Does not change system state')]
param()
function Set-CellStyle {
[CmdletBinding()]
param(
$Worksheet,
$Row,
$LastColumn,
[OfficeOpenXml.Style.ExcelFillStyle]$Pattern,
$Color
)
if ($Color -is [string]) {$Color = [System.Drawing.Color]::$Color }
$t=$Worksheet.Cells["A$($Row):$($LastColumn)$($Row)"]
$t.Style.Fill.PatternType=$Pattern
$t.Style.Fill.BackgroundColor.SetColor($Color)
}