Class BuildingBlock
Represents one Quick Part or glossary entry in a document template.
Inherited Members
Namespace: DRIT.Document
Assembly: DRIT.Document.dll
Syntax
public sealed class BuildingBlock
Constructors
BuildingBlock()
Initializes an empty building block.
Declaration
public BuildingBlock()
Properties
Behavior
Gets or sets the insertion behavior.
Declaration
public BuildingBlockBehavior Behavior { get; set; }
Property Value
| Type | Description |
|---|---|
| BuildingBlockBehavior |
Category
Gets or sets the building block category.
Declaration
public string Category { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Description
Gets or sets the building block description.
Declaration
public string Description { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Gallery
Gets or sets the gallery containing the building block.
Declaration
public BuildingBlockGallery Gallery { get; set; }
Property Value
| Type | Description |
|---|---|
| BuildingBlockGallery |
Guid
Gets or sets the optional source identifier.
Declaration
public string Guid { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Name
Gets or sets the building block name.
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Paragraphs
Gets the paragraphs that make up the building block content.
Declaration
public IList<string> Paragraphs { get; }
Property Value
| Type | Description |
|---|---|
| IList<string> |
Text
Gets or sets the plain text content, represented as one paragraph per line.
Declaration
public string Text { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Type
Gets or sets the building block content type.
Declaration
public BuildingBlockType Type { get; set; }
Property Value
| Type | Description |
|---|---|
| BuildingBlockType |
Methods
AppendParagraph(string)
Appends one paragraph to the building block.
Declaration
public BuildingBlock AppendParagraph(string text)
Parameters
| Type | Name | Description |
|---|---|---|
| string | text | The paragraph text. |
Returns
| Type | Description |
|---|---|
| BuildingBlock | This building block. |