Skip to content

Commit

Permalink
Update textr block
Browse files Browse the repository at this point in the history
  • Loading branch information
PrzemyslawKlys committed Aug 21, 2022
1 parent 98548e0 commit 40753f1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Public/New-AdaptiveTextBlock.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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,
Expand All @@ -94,6 +106,9 @@
color = $Color
height = $Height
fontType = $FontType
highlight = $Highlight
italic = $Italic
strikeThrough = $StrikeThrough
}
if ($MaximumLines) {
$TeamObject['maxLines'] = $MaximumLines
Expand Down

0 comments on commit 40753f1

Please sign in to comment.