The Aspose.Words.BuildingBlocks namespace provides classes that allow to access and use AutoText, AutoCorrect entries and Building Blocks in a document.
Classes | |
| class | BuildingBlock |
| Represents a glossary document entry such as a Building Block, AutoText or an AutoCorrect entry. To learn more, visit the Aspose.Words Document Object Model (DOM) documentation article. More... | |
| class | BuildingBlockCollection |
| A collection of BuildingBlock objects in the document. To learn more, visit the Aspose.Words Document Object Model (DOM) documentation article. More... | |
| class | GlossaryDocument |
| Represents the root element for a glossary document within a Word document. A glossary document is a storage for AutoText, AutoCorrect entries and Building Blocks. To learn more, visit the Aspose.Words Document Object Model (DOM) documentation article. More... | |
Enumerations | |
| enum class | BuildingBlockBehavior |
| Specifies the behavior that shall be applied to the contents of the building block when it is inserted into the main document. More... | |
| enum class | BuildingBlockGallery |
| Specifies the predefined gallery into which a building block is classified. More... | |
| enum class | BuildingBlockType |
| Specifies a building block type. The type might affect the visibility and behavior of the building block in Microsoft Word. More... | |
|
strong |
Specifies the behavior that shall be applied to the contents of the building block when it is inserted into the main document.
Corresponds to the ST_DocPartBehavior type in OOXML.
Shows how to add a custom building block to a document.
| Enumerator | |
|---|---|
| Content | Specifies that the building block shall be inserted as inline content. |
| Paragraph | Specifies that the building block shall be inserted into its own paragraph. |
| Page | Specifies that the building block shall be added into its own page. |
| Default | Same as Content. |
|
strong |
Specifies the predefined gallery into which a building block is classified.
Corresponds to the ST_DocPartGallery type in OOXML.
Shows ways of accessing building blocks in a glossary document.
| Enumerator | |
|---|---|
| All | Specifies that this glossary document entry shall be associated with all possible gallery classification values. |
| AutoText | |
| Bibliography | |
| CoverPage | |
| CustomAutoText | |
| CustomBibliography | |
| CustomCoverPage | |
| CustomEquations | |
| CustomFooters | |
| CustomHeaders | |
| Custom1 | |
| Custom2 | |
| Custom3 | |
| Custom4 | |
| Custom5 | |
| CustomPageNumber | |
| CustomPageNumberAtBottom | |
| CustomPageNumberAtMargin | |
| CustomPageNumberAtTop | |
| CustomQuickParts | |
| CustomTableOfContents | |
| CustomTables | |
| CustomTextBox | |
| CustomWatermarks | |
| NoGallery | |
| QuickParts | |
| Equations | |
| Footers | |
| Headers | |
| PageNumber | |
| PageNumberAtBottom | |
| PageNumberAtMargin | |
| PageNumberAtTop | |
| StructuredDocumentTagPlaceholderText | |
| TableOfContents | |
| Tables | |
| TextBox | |
| Watermarks | |
| Default | Same as All. |
|
strong |
Specifies a building block type. The type might affect the visibility and behavior of the building block in Microsoft Word.
Corresponds to the ST_DocPartType type in OOXML.
Shows how to add a custom building block to a document.
| Enumerator | |
|---|---|
| None | No type information is specified for the building block. |
| AutomaticallyReplaceNameWithContent | Allows the building block to be automatically inserted into the document whenever its name is entered into an application. |
| StructuredDocumentTagPlaceholderText | The building block is a structured document tag placeholder text. |
| FormFieldHelpText | The building block is a form field help text. |
| Normal | The building block is a normal (i.e. regular) glossary document entry. |
| AutoCorrect | The building block is associated with the spelling and grammar tools. |
| AutoText | The building block is an AutoText entry. |
| All | The building block is associated with all types. |
| Default | Save as None. |