Documents for Word .NET Edition
GrapeCity.Documents.Word Assembly / GrapeCity.Documents.Word Namespace / CustomXmlPartCollection Class / Add(XmlDocument,String,String[],String) Method
The System.Xml.XmlDocument that contains data for this part.
A globally unique identifier (GUID) that uniquely identifies this part in the document.
A list of XML schemas that are associated with the part.
The content type of the part.

In This Topic
    Add(XmlDocument,String,String[],String) Method
    In This Topic
    Adds a new CustomXmlPart into the collection.
    Syntax
    'Declaration
     
    Public Function Add( _
       ByVal xmlDocument As System.Xml.XmlDocument, _
       Optional ByVal id As System.String, _
       Optional ByVal schemas() As System.String, _
       Optional ByVal contentType As System.String _
    ) As CustomXmlPart
    public CustomXmlPart Add( 
       System.Xml.XmlDocument xmlDocument,
       System.string id,
       System.string[] schemas,
       System.string contentType
    )

    Parameters

    xmlDocument
    The System.Xml.XmlDocument that contains data for this part.
    id
    A globally unique identifier (GUID) that uniquely identifies this part in the document.
    schemas
    A list of XML schemas that are associated with the part.
    contentType
    The content type of the part.

    Return Value

    A newly created CustomXmlPart.
    See Also