Partager via


BuildingBlocks.Add(String, Range, Object, WdDocPartInsertOptions) Méthode

Définition

Crée un bloc de construction et retourne 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’objet BuildingBlock .

Range
Range

Spécifie la valeur de l'entrée du bloc de construction. Correspond à la Value propriété de l’objet BuildingBlock .

Description
Object

Spécifie la description de l'entrée du bloc de construction. Correspond à la Description propriété de l’objet BuildingBlock .

InsertOptions
WdDocPartInsertOptions

Spécifie si l'entrée du bloc de construction est insérée dans une page, un paragraphe ou en ligne. En cas d’omission, la valeur par défaut est wdInsertContent. Correspond à la InsertOptions propriété de l’objet BuildingBlock .

Retours

BuildingBlock

S’applique à