OpenXmlPartWriter.WriteStartDocument Method (Boolean)

Writes the XML declaration with the version "1.0" and the standalone attribute.

Namespace:  DocumentFormat.OpenXml
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
Public Overrides Sub WriteStartDocument ( _
    standalone As Boolean _
)
'Usage
Dim instance As OpenXmlPartWriter
Dim standalone As Boolean

instance.WriteStartDocument(standalone)
public override void WriteStartDocument(
    bool standalone
)

Parameters

  • standalone
    Type: System.Boolean
    If true, it writes "standalone=yes"; if false, it writes "standalone=no".

See Also

Reference

OpenXmlPartWriter Class

OpenXmlPartWriter Members

WriteStartDocument Overload

DocumentFormat.OpenXml Namespace