Edit

Share via


Word.Interfaces.BuildingBlockLoadOptions interface

Represents a building block in a template. A building block is pre-built content, similar to autotext, that may contain text, images, and formatting.

Remarks

[ API set: WordApiDesktop 1.3 ]

Properties

$all

Specifying $all for the load options loads all the scalar properties (such as Range.address) but not the navigational properties (such as Range.format.fill.color).

category

Returns a BuildingBlockCategory object that represents the category for the building block.

description

Specifies the description for the building block.

id

Returns the internal identification number for the building block.

index

Returns the position of this building block in a collection.

insertType

Specifies a DocPartInsertType value that represents how to insert the contents of the building block into the document.

name

Specifies the name of the building block.

type

Returns a BuildingBlockTypeItem object that represents the type for the building block.

value

Specifies the contents of the building block.

Property Details

$all

Specifying $all for the load options loads all the scalar properties (such as Range.address) but not the navigational properties (such as Range.format.fill.color).

$all?: boolean;

Property Value

boolean

category

Returns a BuildingBlockCategory object that represents the category for the building block.

category?: Word.Interfaces.BuildingBlockCategoryLoadOptions;

Property Value

Remarks

[ API set: WordApiDesktop 1.3 ]

description

Specifies the description for the building block.

description?: boolean;

Property Value

boolean

Remarks

[ API set: WordApiDesktop 1.3 ]

id

Returns the internal identification number for the building block.

id?: boolean;

Property Value

boolean

Remarks

[ API set: WordApiDesktop 1.3 ]

index

Returns the position of this building block in a collection.

index?: boolean;

Property Value

boolean

Remarks

[ API set: WordApiDesktop 1.3 ]

insertType

Specifies a DocPartInsertType value that represents how to insert the contents of the building block into the document.

insertType?: boolean;

Property Value

boolean

Remarks

[ API set: WordApiDesktop 1.3 ]

name

Specifies the name of the building block.

name?: boolean;

Property Value

boolean

Remarks

[ API set: WordApiDesktop 1.3 ]

type

Returns a BuildingBlockTypeItem object that represents the type for the building block.

type?: Word.Interfaces.BuildingBlockTypeItemLoadOptions;

Property Value

Remarks

[ API set: WordApiDesktop 1.3 ]

value

Specifies the contents of the building block.

value?: boolean;

Property Value

boolean

Remarks

[ API set: WordApiDesktop 1.3 ]