BuildingBlocks.Add method

Creates a new building block and returns a BuildingBlock object.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

BuildingBlock Add(
	string Name,
	Range Range,
	ref Object Description,
	WdDocPartInsertOptions InsertOptions
)

Parameters

Name
Type: System.String

Specifies the name of the building block entry. Corresponds to the Name property of the BuildingBlock object.

Range
Type: Microsoft.Office.Interop.Word.Range

Specifies the value of the buildling block entry. Corresponds to the Value property of the BuildingBlock object.

Description
Type: System.Object

Specifies the description of the buildling block entry. Corresponds to the Description property of the BuildingBlock object.

InsertOptions
Type: Microsoft.Office.Interop.Word.WdDocPartInsertOptions

Specifies whether the building block entry is inserted as a page, a paragraph, or inline. If omitted, the default value is wdInsertContent. Corresponds to the InsertOptions property for the BuildingBlock object.

Show:
© 2014 Microsoft