Xamarin.Android

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class CustomXMLPart

    Show / Hide Table of Contents

    Class CustomXMLPart

    Represents the custom XML part in the Word document.

    Inheritance
    System.Object
    CustomXMLPart
    Namespace: Syncfusion.DocIO.DLS
    Assembly: Syncfusion.DocIO.Portable.dll
    Syntax
    public class CustomXMLPart : Object

    Constructors

    CustomXMLPart(WordDocument)

    Initializes the Custom XML Part.

    Declaration
    public CustomXMLPart(WordDocument document)
    Parameters
    Type Name Description
    WordDocument document

    A Word document.

    Properties

    Id

    Declaration
    public string Id { get; }
    Property Value
    Type Description
    System.String

    Methods

    AddNode(CustomXMLNode, String, CustomXMLNodeType, String)

    Adds a new node to the CustomXMLPart under the mentioned parent node.

    Declaration
    public void AddNode(CustomXMLNode customXmlNode, string name, CustomXMLNodeType nodeType, string nodeValue)
    Parameters
    Type Name Description
    CustomXMLNode customXmlNode

    Represents the node under which this node should be added. If adding an attribute, the parameter denotes the element that the attribute should be added to.

    System.String name

    Represents the base name of the node to be added.

    CustomXMLNodeType nodeType

    Specifies the type of node to append.

    System.String nodeValue

    Used to set the value of the appended node for those nodes that allow text.

    Load(Stream)

    Loads the CustomXMLPart from the XML string.

    Declaration
    public void Load(Stream xmlStream)
    Parameters
    Type Name Description
    System.IO.Stream xmlStream

    Specifies XML stream.

    LoadXML(String)

    Declaration
    public void LoadXML(string xml)
    Parameters
    Type Name Description
    System.String xml

    SelectSingleNode(String)

    Declaration
    public CustomXMLNode SelectSingleNode(string xPath)
    Parameters
    Type Name Description
    System.String xPath
    Returns
    Type Description
    CustomXMLNode
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved