OfficeIMO

API Reference

Command

Add-OfficeWordDatePicker

Namespace PSWriteOffice
Inputs
OfficeIMO.Word.WordParagraph
Outputs
OfficeIMO.Word.WordDatePicker

Adds a date picker content control to the current paragraph.

Remarks

Adds a date picker content control to the current paragraph.

Examples

Add a date picker with today's date.


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

Creates a date picker control with an initial 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

Add-OfficeWordDatePicker [-Alias <String>] [-Date <Nullable`1>] [-Paragraph <WordParagraph>] [-PassThru] [-Tag <String>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Alias String optionalposition: namedpipeline: False
Optional alias for the control.
Date Nullable`1 optionalposition: namedpipeline: False
Optional initial date.
Paragraph WordParagraph optionalposition: namedpipeline: True (ByValue)
Explicit paragraph to receive the control.
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the created control.
Tag String optionalposition: namedpipeline: False
Optional tag for the control.

Outputs

OfficeIMO.Word.WordDatePicker