API Reference
Cmdlet
New-OfficeTextRun
Creates a reusable rich text run specification for Word, Excel, PowerPoint, and PDF commands.
Remarks
Creates a reusable rich text run specification for Word, Excel, PowerPoint, and PDF commands.
Examples
EXAMPLE 1
New-OfficeTextRun -BackgroundColor 'Value'
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.
Syntax
New-OfficeTextRun [-BackgroundColor <String>] [-Baseline <String>] [-Bold] [-Color <String>] [-FontName <String>] [-FontSize <Nullable`1>] [-Italic] [-Kind <String>] [-LinkContents <String>] [-LinkDestinationName <String>] [-LinkUri <String>] [-Strike] [-TabAlignment <String>] [-TabLeader <String>] [-Text <String>] [-Underline] [-UnderlineStyle <String>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- BackgroundColor String
- Run background or highlight color. Named colors and hexadecimal colors are accepted.
- Baseline String
- Target-specific baseline name, such as Superscript or Subscript.
- Bold SwitchParameter
- Render the run in bold.
- Color String
- Text color. Named colors and hexadecimal colors are accepted.
- FontName String
- Font name, family, or target-specific font identifier.
- FontSize Nullable`1
- Font size in points.
- Italic SwitchParameter
- Render the run in italics.
- Kind String
- Run kind such as Text, LineBreak, Tab, Superscript, or Subscript.
- LinkContents String
- Optional link tooltip or annotation contents.
- LinkDestinationName String
- Named destination or bookmark target when supported by the target format.
- LinkUri String
- URI link target when supported by the target format.
- Strike SwitchParameter
- Render the run with strikethrough.
- TabAlignment String
- Tab alignment name.
- TabLeader String
- PDF tab leader style name.
- Text String
- Run text.
- Underline SwitchParameter
- Render the run with underline.
- UnderlineStyle String
- Optional underline style name when the target format supports it.
Outputs
PSWriteOffice.Services.Text.OfficeTextRunSpec: PowerShell-friendly rich text run specification used by document adapters.