Cmdlet
Add-OfficeWordHyperlink
Adds a hyperlink to the current Word paragraph.
Syntax
Add-OfficeWordHyperlink
[-NoHistory]
[-PassThru]
[-Styled]
[-Text] <String>
[-Tooltip <String>]
-Url <String>
[<CommonParameters>]#Parameter set:
ContextUrlAdd-OfficeWordHyperlink
[-NoHistory]
-Paragraph <WordParagraph>
[-PassThru]
[-Styled]
[-Text] <String>
[-Tooltip <String>]
-Url <String>
[<CommonParameters>]#Parameter set:
ParagraphUrlAdd-OfficeWordHyperlink
-Anchor <String>
[-NoHistory]
-Paragraph <WordParagraph>
[-PassThru]
[-Styled]
[-Text] <String>
[-Tooltip <String>]
[<CommonParameters>]#Parameter set:
ParagraphAnchorAdd-OfficeWordHyperlink
-Anchor <String>
[-NoHistory]
[-PassThru]
[-Styled]
[-Text] <String>
[-Tooltip <String>]
[<CommonParameters>]#Parameter set:
ContextAnchorExamples
Add an external hyperlink.
Add-OfficeWordParagraph { Add-OfficeWordHyperlink -Text 'Example' -Url 'https://example.org' -Styled }Creates a styled external hyperlink in the active paragraph.
Parameters
- -NoHistory SwitchParameter
- Do not mark the hyperlink in navigation history.
- -PassThru SwitchParameter
- Emit the created hyperlink.
- -Styled SwitchParameter
- Apply the built-in hyperlink style.
- -Text String
- Displayed hyperlink text.
- -Tooltip String
- Optional hyperlink tooltip.
- -Url String
- External hyperlink URL.
- -Paragraph WordParagraph
- Paragraph to update outside the DSL context.
- -Anchor String
- Bookmark anchor target within the document.
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.