BuildingBlockEntries.Add(String, WdBuildingBlockTypes, 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 une nouvelle entrée du bloc de construction dans un modèle et renvoie un BuildingBlock objet qui représente la nouvelle entrée du bloc de construction.
public Microsoft.Office.Interop.Word.BuildingBlock Add (string Name, Microsoft.Office.Interop.Word.WdBuildingBlockTypes Type, string Category, 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.WdBuildingBlockTypes * string * Microsoft.Office.Interop.Word.Range * obj * Microsoft.Office.Interop.Word.WdDocPartInsertOptions -> Microsoft.Office.Interop.Word.BuildingBlock
Public Function Add (Name As String, Type As WdBuildingBlockTypes, Category 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.
- Type
- WdBuildingBlockTypes
Spécifie le type de bloc de construction à créer. Correspond à la Type propriété de l' BuildingBlock objet.
- Category
- String
Spécifie la catégorie de la nouvelle entrée du bloc de construction. Correspond à la Category 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.