From 40753f1a83139ab9cff132ecd6a1f17924adc3de Mon Sep 17 00:00:00 2001 From: Przemyslaw Klys Date: Sun, 21 Aug 2022 17:30:29 +0200 Subject: [PATCH] Update textr block --- Public/New-AdaptiveTextBlock.ps1 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Public/New-AdaptiveTextBlock.ps1 b/Public/New-AdaptiveTextBlock.ps1 index 691ecdb..05cdc61 100644 --- a/Public/New-AdaptiveTextBlock.ps1 +++ b/Public/New-AdaptiveTextBlock.ps1 @@ -30,6 +30,15 @@ .PARAMETER Weight Controls the weight of TextBlock elements. + .PARAMETER Highlight + Controls the hightlight of text elements + + .PARAMETER StrikeThrough + Controls strikethrough of text elements + + .PARAMETER Italic + Controls italic of text elements + .PARAMETER Wrap Allow text to wrap. Otherwise, text is clipped. @@ -76,6 +85,9 @@ [int] $MaximumLines, [alias('FontSize')][ValidateSet("Small", 'Default', "Medium", "Large", "ExtraLarge")][string] $Size, [alias('FontWeight')][ValidateSet("Lighter", 'Default', "Bolder")][string] $Weight, + [switch] $Highlight, + [switch] $Italic, + [switch] $StrikeThrough, [switch] $Wrap, [alias('BlockElementHeight')][ValidateSet('Stretch', 'Automatic')][string] $Height, [switch] $Separator, @@ -94,6 +106,9 @@ color = $Color height = $Height fontType = $FontType + highlight = $Highlight + italic = $Italic + strikeThrough = $StrikeThrough } if ($MaximumLines) { $TeamObject['maxLines'] = $MaximumLines