Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Add-OfficeWordDatePicker

Aliases: WordDatePicker
Module
PSWriteOffice
Aliases
WordDatePicker
Inputs
OfficeIMO.Word.WordParagraph
Outputs
OfficeIMO.Word.WordDatePicker

Adds a date picker content control to the current paragraph.

Syntax

Add-OfficeWordDatePicker
[-Alias <String>]
[-Date <DateTime>]
[-Paragraph <WordParagraph>]
[-PassThru]
[-Tag <String>]
[<CommonParameters>]
#
Parameter set: Default

Examples

Add a date picker with today's date.

Add-OfficeWordParagraph { Add-OfficeWordDatePicker -Date (Get-Date) -Alias 'DueDate' }

Creates a date picker control with an initial value.

Parameters

-Alias String optional
Optional alias for the control.
-Date DateTime optional
Optional initial date.
-Paragraph WordParagraph optionalpipeline: True (ByValue)
Explicit paragraph to receive the control.
-PassThru SwitchParameter optional
Emit the created control.
-Tag String optional
Optional tag for the control.

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.