DS.Documents.Word Assembly / GrapeCity.Documents.Word Namespace / BuildingBlockCollection Class / Add Method
The building block name.
The building block category.
The building block gallery.
The building block insert options.
The building block type.

In This Topic
Add Method (BuildingBlockCollection)
In This Topic
Adds a new building block into the collection.
Syntax
'Declaration
 
Public Function Add( _
   ByVal name As System.String, _
   ByVal category As System.String, _
   Optional ByVal gallery As BuildingBlockGallery, _
   Optional ByVal insertOptions As BuildingBlockInsertOptions, _
   Optional ByVal type As BuildingBlockType _
) As BuildingBlock
 

Parameters

name
The building block name.
category
The building block category.
gallery
The building block gallery.
insertOptions
The building block insert options.
type
The building block type.

Return Value

A newyly added BuildingBlock.
See Also