OfficeIMO

API Reference

Command

Add-OfficeMarkdownTaskList

Namespace PSWriteOffice
Inputs
OfficeIMO.Markdown.MarkdownDoc
Outputs
OfficeIMO.Markdown.MarkdownDoc

Adds a Markdown task list.

Remarks

Adds a Markdown task list.

Examples

Add a checklist.


PS>MarkdownTaskList -Items 'Draft','Review','Ship' -Completed 1
        

Appends an unordered task list and marks the selected items as completed.

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-OfficeMarkdownTaskList [-AllCompleted] [-Completed <Int32[]>] -Items <String[]> [-PassThru] [<CommonParameters>]
#
Parameter set: Context

Parameters

AllCompleted SwitchParameter optionalposition: namedpipeline: False
Mark every task as completed.
Completed Int32[] optionalposition: namedpipeline: False
Zero-based item indexes that should be marked complete.
Items String[] requiredposition: 0pipeline: False
Task text entries to include in the checklist.
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the updated Markdown document.

Outputs

OfficeIMO.Markdown.MarkdownDoc

Add-OfficeMarkdownTaskList [-AllCompleted] [-Completed <Int32[]>] -Document <MarkdownDoc> -Items <String[]> [-PassThru] [<CommonParameters>]
#
Parameter set: Document

Parameters

AllCompleted SwitchParameter optionalposition: namedpipeline: False
Mark every task as completed.
Completed Int32[] optionalposition: namedpipeline: False
Zero-based item indexes that should be marked complete.
Document MarkdownDoc requiredposition: namedpipeline: True (ByValue)
Markdown document to update outside the DSL context.
Items String[] requiredposition: 0pipeline: False
Task text entries to include in the checklist.
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the updated Markdown document.

Outputs

OfficeIMO.Markdown.MarkdownDoc