Adds an object to a collection of the objects that will be disposed during document closing.

Namespace: Spire.Pdf
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 7.9.2.0 (7.9.2.1020)

Syntax

            
 C#  Visual Basic  Visual C++  F# 
public void DisposeOnClose(
	IDisposable obj
)
Public Sub DisposeOnClose ( 
	obj As IDisposable
)
public:
void DisposeOnClose(
	IDisposable^ obj
)
member DisposeOnClose : 
        obj : IDisposable -> unit 

Parameters

obj
IDisposable
The object that will be disposed during document closing.

See Also