Command
New-ImageCanvasText
Creates a positioned text layer for a visual canvas.
Syntax
New-ImageCanvasText
[-Alignment <Left| Center| Right>]
[-Color <ChartColor>]
[-Emphasized]
[-FontSize <Double>]
[-Text] <String>
[-Width] <Double>
[-X] <Double>
[-Y] <Double>
[<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Create a social-preview heading
New-ImageCanvasText -X 72 -Y 70 -Width 900 -Text 'Release 3.3' -FontSize 56 -Color White -EmphasizedParameters
- -Alignment TextAlignment
- Text alignment within the layer width.
- Possible values:
Left,Center,Right - -Color ChartColor
- Text color.
- -Emphasized SwitchParameter
- Use the emphasized text treatment.
- -FontSize Double
- Font size in canvas design pixels.
- -Text String
- Text to render.
- -Width Double
- Text layout width.
- -X Double
- Horizontal position in canvas design pixels.
- -Y Double
- Vertical position in canvas design pixels.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.