API Reference
Command
Add-OfficeWordContentControl
Adds a structured content control to the current paragraph.
Remarks
Adds a structured content control to the current paragraph.
Examples
Add a content control with text.
PS>Add-OfficeWordParagraph { Add-OfficeWordContentControl -Text 'Client' -Alias 'ClientName' }
Creates a content control with the specified text.
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
Add-OfficeWordContentControl [-Alias <String>] [-Paragraph <WordParagraph>] [-PassThru] [-Tag <String>] [-Text <String>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- Alias String
- Optional alias for the control.
- Paragraph WordParagraph
- Explicit paragraph to receive the control.
- PassThru SwitchParameter
- Emit the created control.
- Tag String
- Optional tag for the control.
- Text String
- Initial text for the control.
Outputs
OfficeIMO.Word.WordStructuredDocumentTag