Selection.InsertXML(String, Object) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Insère le texte XML spécifié dans la sélection spécifiée.
public void InsertXML (string XML, ref object Transform);
abstract member InsertXML : string * obj -> unit
Public Sub InsertXML (XML As String, Optional ByRef Transform As Object)
Paramètres
- XML
- String
Argument de type String obligatoire. Texte XML à insérer.
- Transform
- Object
Objetfacultatif. Transformation à appliquer au texte XML inséré.
Remarques
Si la plage spécifiée ou la sélection contient du texte, la méthode InsertXML remplace le texte existant.
Utilisez la méthode InsertXML pour insérer du texte marqué avec du code XML ou XML arbitraire. Le code XML doit être bien formé. S’il utilise du code XML Word, il doit également être valide en fonction du schéma XML Word. Pour plus d’informations sur le schéma XML Word, reportez-vous au kit de développement de contenu XML Word, que vous pouvez trouver sur le site Web Microsoft Developer Network (MSDN).
Si le texte XML spécifié ne peut pas être inséré dans la plage ou la sélection spécifiée, un message d’erreur s’affiche.