2using System.Threading.Tasks;
22 : base(Document, Parent)
33 if (!(this.text is
null))
44 public override async Task
FromXml(XmlElement Input)
46 await base.FromXml(Input);
50 foreach (XmlNode Node
in Input.ChildNodes)
52 if (Node is XmlElement E)
63 this.text = Children.ToArray();
72 base.ExportChildren(Output);
74 if (!(this.text is
null))
87 base.CopyContents(Destination);
91 if (!(this.text is
null))
93 int i, c = this.text.Length;
97 for (i = 0; i < c; i++)
100 Dest.text = Children;
112 if (!(this.text is
null))
129 if (!(this.text is
null))
Syntax-related layout exception
Contains a 2D layout document.
Abstract base class of embedded text elements in flowing text.
override void Dispose()
IDisposable.Dispose
virtual async Task MeasureSegments(ChunkedList< Segment > Segments, DrawingState State)
Measures text segments to a list of segments.
EmbeddedText(Layout2DDocument Document, ILayoutElement Parent)
Abstract base class of embedded text elements in flowing text.
override async Task FromXml(XmlElement Input)
Populates the element (including children) with information from its XML definition.
override void ExportChildren(XmlWriter Output)
Exports child elements to XML.
override void CopyContents(ILayoutElement Destination)
Copies contents (attributes and children) to the destination element.
override void ExportStateChildren(XmlWriter Output)
Exports the current state of child nodes of the current element.
Represents a segment of text in flowing text.
async Task MeasureSegments(ChunkedList< Segment > Segments, DrawingState State)
Measures text segments to a list of segments.
Abstract base class for layout elements.
async Task MeasureDimensions(DrawingState State)
Measures layout entities and defines unassigned properties, related to dimensions....
ILayoutElement Copy(ILayoutElement Parent)
Creates a copy of the layout element.
Layout2DDocument Document
Layout document.
bool IsVisible
If the element is visible or not.
A chunked list is a linked list of chunks of objects of type T .
Base interface for flowing text
Base interface for all layout elements.
string ExportState()
Exports the internal state of the layout.
string ToXml()
Exports the element to XML.