Main Class

Main.When the object is serialized out as xml, its qualified name is x:main.

Inheritance Hierarchy


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


<ChildElementInfoAttribute(GetType(Topic))> _
Public Class Main _
    Inherits OpenXmlCompositeElement
Dim instance As Main
public class Main : OpenXmlCompositeElement


The following table lists the possible child types:

  • Topic <x:tp>

[ISO/IEC 29500-1 1st Edition]

18.15.1 main (Main)

Represents dependency information for all topics within a volatile dependency type that share the same first string or function argument.

Parent Elements

volType (§18.15.5)

Child Elements


tp (Topic)




first (First String)

Specifies the first string of all topics within this main. This string corresponds to the first argument to the RTD or CUBE function.

For RTD functions, this argument represents the progID of the IRTDServer.


<main first="jrtdx.rtd">

end example]

For CUBE functions, this argument represents the CUBE connection.


<main first="xlextdat9 Adventure Works DW Adventure Works">

end example]

For more information on RTD and CUBE functions in SpreadsheetML, see §18.17 in Formulas.

The possible values for this attribute are defined by the ST_Xstring simple type (§

[Note: The W3C XML Schema definition of this element’s content model (CT_VolMain) is located in §A.2. end note]

© ISO/IEC29500: 2008.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also


Main Members

DocumentFormat.OpenXml.Spreadsheet Namespace