Sets the parameter that allows you to enable/disable the control over the Document.Open() and Document.Close() method.
Namespace: iTextSharp.text.xmlAssembly: ITextSharp (in ITextSharp.dll) Version: 4.1.6.0
Syntax
C# |
---|
public void SetControlOpenClose( bool controlOpenClose ) |
Visual Basic |
---|
Public Sub SetControlOpenClose ( _ controlOpenClose As Boolean _ ) |
Visual C++ |
---|
public: void SetControlOpenClose( bool controlOpenClose ) |
Parameters
- controlOpenClose
- Type: System..::..Boolean
set this to false if you plan to open/close the Document yourself
Remarks
If you set this parameter to true (= default), the parser will open the Document object when the start-root-tag is encountered
and close it when the end-root-tag is met. If you set it to false, you have to open and close the Document object
yourself.