EvotecIT/PSWriteColor

Enhancement - Added PadLeft; PadCenter; PadRight; and PadCharacter Parameters to Write-Color Function

Opened this issue · 3 comments

Added PadLeft; PadCenter; PadRight; and PadCharacter Parameters to Write-Color Function

Updated LinesBefore & LinesAfter code to make use of these new parameters. Allows for easily formatting menus or table output. See Example code (lines 54-65)

Screenshot 2023-04-13 191308

Screenshot 2023-04-13 190549

Write-Color.zip

Care to sumbit PR instead?

THX, created pull request. Hope it is useful to the project.

Please provide proper example, not in a form of screenshot and I am not sure I understand the usage. What would be your use case? It's pretty complicated to try and use it that way.