Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Close-OfficeRtf

Module
PSWriteOffice
Inputs
OfficeIMO.Rtf.RtfDocument
Outputs
System.Void

Releases an RtfDocument without saving.

Syntax

Close-OfficeRtf
-Document <RtfDocument>
[<CommonParameters>]
#
Parameter set: Document

Examples

Use the native OfficeRtf command.

Close-OfficeRtf -Document $rtf.Document

Parameters

-Document RtfDocument requiredpipeline: True (ByValue)
Document for this operation.

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.