Interface ILargeElement
A ILargeElement is a layout element which may get added to indefinitely, making the object prohibitively large.
public interface ILargeElement : IElement, IPropertyContainer
- Inherited Members
Remarks
A ILargeElement is a layout element which may get added to indefinitely, making the object prohibitively large. In order to avoid consuming and holding on to undesirable amounts of resources, the contents of a ILargeElement can be flushed regularly by client code, e.g. at page boundaries or after a certain amount of additions.
Methods
Complete()
Indicates that all the desired content has been added to this large element.
void Complete()
Flush()
Writes the newly added content to the document.
void Flush()
FlushContent()
Flushes the content which has just been added to the document.
void FlushContent()
Remarks
Flushes the content which has just been added to the document. This is a method for internal usage and is called automatically by the document.
IsComplete()
Checks whether an element has already been marked as complete.
bool IsComplete()
Returns
- bool
the completion marker boolean
SetDocument(Document)
Sets the document this element is bound to.
void SetDocument(Document document)
Parameters
document
Documentthe document
Remarks
Sets the document this element is bound to. We cannot write a large element into several documents simultaneously because we would need more bulky interfaces for this feature. For now we went for simplicity.