Documents for Word .NET Edition
GrapeCity.Documents.Word Assembly / GrapeCity.Documents.Word Namespace / XmlMapping Class / SetMapping Method / SetMapping(String,String,String,Boolean) Method
The XPath expression which shall be evaluated to find the custom XML node which is mapped to the content control.
The set of prefix mappings which shall be used to interpret the XPath expression when the XPath expression is evaluated against the custom XML data parts in the document.
The CustomXmlPart identifier which shall be used to evaluate the given XPath expression.
Whether the xml mapping supports a content control with ContentControlType.RichText type.

In This Topic
    SetMapping(String,String,String,Boolean) Method
    In This Topic
    Set mapping between a content control and an XML node stored within a Custom XML Data part in the document.
    Syntax
    'Declaration
     
    Public Overloads Function SetMapping( _
       ByVal xPath As System.String, _
       Optional ByVal prefixMappings As System.String, _
       Optional ByVal customXmlPartId As System.String, _
       Optional ByVal supportRichTextControl As System.Boolean _
    ) As System.String
    public System.string SetMapping( 
       System.string xPath,
       System.string prefixMappings,
       System.string customXmlPartId,
       System.bool supportRichTextControl
    )

    Parameters

    xPath
    The XPath expression which shall be evaluated to find the custom XML node which is mapped to the content control.
    prefixMappings
    The set of prefix mappings which shall be used to interpret the XPath expression when the XPath expression is evaluated against the custom XML data parts in the document.
    customXmlPartId
    The CustomXmlPart identifier which shall be used to evaluate the given XPath expression.
    supportRichTextControl
    Whether the xml mapping supports a content control with ContentControlType.RichText type.

    Return Value

    Inner xml of the mapped node stored within a XmlDocument in the document.
    See Also