BuildingBlocks.Add(String, Range, Object, WdDocPartInsertOptions) 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.
Crée un nouveau bloc de construction et renvoie un BuildingBlock objet.
public Microsoft.Office.Interop.Word.BuildingBlock Add (string Name, Microsoft.Office.Interop.Word.Range Range, ref object Description, Microsoft.Office.Interop.Word.WdDocPartInsertOptions InsertOptions = Microsoft.Office.Interop.Word.WdDocPartInsertOptions.wdInsertContent);
abstract member Add : string * Microsoft.Office.Interop.Word.Range * obj * Microsoft.Office.Interop.Word.WdDocPartInsertOptions -> Microsoft.Office.Interop.Word.BuildingBlock
Public Function Add (Name As String, Range As Range, Optional ByRef Description As Object, Optional InsertOptions As WdDocPartInsertOptions = Microsoft.Office.Interop.Word.WdDocPartInsertOptions.wdInsertContent) As BuildingBlock
Paramètres
- Name
- String
Spécifie le nom de l'entrée du bloc de construction. Correspond à la Name propriété de l' BuildingBlock objet.
- Range
- Range
Spécifie la valeur de l'entrée du bloc de construction. Correspond à la Value propriété de l' BuildingBlock objet.
- Description
- Object
Spécifie la description de l'entrée du bloc de construction. Correspond à la Description propriété de l' BuildingBlock objet.
- InsertOptions
- WdDocPartInsertOptions
Spécifie si l'entrée du bloc de construction est insérée dans une page, un paragraphe ou en ligne. Si cet argument est omis, la valeur par défaut est wdInsertContent . Correspond à la InsertOptions propriété de l' BuildingBlock objet.