XMLMapping.CustomXMLNode Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a CustomXMLNode object that represents the custom XML node in the data store to which the content control in the document maps.
public:
property Microsoft::Office::Core::CustomXMLNode ^ CustomXMLNode { Microsoft::Office::Core::CustomXMLNode ^ get(); };
public Microsoft.Office.Core.CustomXMLNode CustomXMLNode { get; }
member this.CustomXMLNode : Microsoft.Office.Core.CustomXMLNode
Public ReadOnly Property CustomXMLNode As CustomXMLNode
Property Value
Examples
The following example inserts a new content control and custom XML part into the active document, maps the content control to a node in the custom XML part, and then sets the value of the mapped XML node.
<span class="label">Dim objCC As ContentControl
Dim objPart As CustomXMLPart
Dim objNode As CustomXMLNode
Dim objMap As XMLMapping
Set objCC = ActiveDocument.ContentControls.Add(wdContentControlText)
Set objPart = ActiveDocument.CustomXMLParts.Add("<books><book>" & _
"<author></author><title></title><genre></genre><price></price>" & _
"<pub_date></pub_date><abstract></abstract></book></books>")
Set objMap = objCC.XMLMapping
objMap.SetMapping "/books/book/author", , objPart
Set objNode = objMap.</span>
<span class="label">CustomXMLNode</span>
<span class="label">objNode.Text = "Matt Hink"objCC.Range.Text = objNode.Text</span>
Applies to
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기