Share via


indent Property

 

Sets whether to indent output. When set to True, this property requires output to be indented (or "pretty printed") to reflect the nesting structure of the document.

Visual Basic Usage Syntax

oMXXMLWriter.indent = boolValue  
boolValue = oMXXMLWriter.indent  

C/C++ Syntax

 [propput]  
HRESULT indent (  
   [in] VARIANT_BOOL fIndentMode);  
  
[propget]  
HRESULT indent (  
   [out, retval] VARIANT_BOOL * fIndentMode);  

Parameters

fIndentMode
A Boolean expression (True/False) specifying whether the feature is on or off.

Return Values

S_OK
The value returned if no errors are reported.

Remarks

Boolean. Read/write. The general rules of indentation are: XML headers and root elements start on a new line with a zero indent; element content, including leading and trailing white spaces, is not changed in any way.

Versioning

Implemented in: MSXML 6.0

Applies to

MXHTMLWriter CoClass

See Also

IMXWriter Interface
MXXMLWriter CoClass