2using System.Threading.Tasks;
Contains a 2D layout document.
Base interface for all layout elements.
float? Bottom
Bottom coordinate of bounding box, after measurement.
float? Width
Width of element
Task RegisterIDs(Variables Session)
Registers any IDs defined with the encapsulating document.
ILayoutElement Copy(ILayoutElement Parent)
Creates a copy of the layout element.
float? Right
Right coordinate of bounding box, after measurement.
Task Draw(DrawingState State)
Draws layout entities.
Task MeasureDimensions(DrawingState State)
Measures layout entities and defines unassigned properties, related to dimensions....
void CopyContents(ILayoutElement Destination)
Copies contents (attributes and children) to the destination element.
float? InnerWidth
Inner Width of element
float? ExplicitHeight
Explicit set height of element, if defined.
void BeforeMeasureDimensions(DrawingState State)
Called before dimensions are measured.
bool IsVisible
If the element is visible or not.
string LocalName
Local name of type of element.
void ToXml(XmlWriter Output)
Exports the element to XML.
Task FromXml(XmlElement Input)
Populates the element (including children) with information from its XML definition.
float? Left
Left coordinate of bounding box, after measurement.
Task DoMeasureDimensions(DrawingState State)
Measures layout entities and defines unassigned properties, related to dimensions.
float? Top
Top coordinate of bounding box, after measurement.
float? PotentialHeight
Potential Height of element
ILayoutElement Create(Layout2DDocument Document, ILayoutElement Parent)
Creates a new instance of the layout element.
string ExportState()
Exports the internal state of the layout.
void MeasurePositions(DrawingState State)
Measures layout entities and defines unassigned properties, related to positions.
ILayoutElement Parent
Parent element.
Task AfterMeasureDimensions(DrawingState State)
Called when dimensions have been measured.
void ExportState(XmlWriter Output)
Exports the internal state of the layout.
float? ExplicitWidth
Explicit set width of element, if defined.
float? Height
Height of element
string ToXml()
Exports the element to XML.
string Namespace
Namespace of type of element.
float? PotentialWidth
Potential Width of element
Layout2DDocument Document
Layout document.
StringAttribute IdAttribute
ID Attribute
float? InnerHeight
Inner Height of element
Task DrawShape(DrawingState State)
Draw the shape represented by the layout element.