API Reference
Cmdlet
Add-OfficeOpenDocumentHeading
Adds a heading to an OpenDocument text document.
Remarks
Adds a heading to an OpenDocument text document.
Examples
Add a level-two heading inside an OpenDocument DSL.
PS>
Add-OfficeOpenDocumentHeading -Text 'Results' -Level 2
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-OfficeOpenDocumentHeading [-Document <OdtDocument>] [-Level <Int32>] [-PassThru] -Text <String> [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- Document OdtDocument
- OpenDocument text document. Omit inside New-OfficeOpenDocument -Content.
- Level Int32
- Heading level from 1 through 10.
- PassThru SwitchParameter
- Emit the created heading paragraph.
- Text String
- Heading text.
Outputs
OfficeIMO.OpenDocument.OdtParagraph