3using System.Collections.Generic;
4using System.Threading.Tasks;
23 : base(Document, Parent)
34 if (!(this.text is
null))
45 public override async Task
FromXml(XmlElement Input)
47 await base.FromXml(Input);
49 List<IFlowingText> Children =
new List<IFlowingText>();
51 foreach (XmlNode Node
in Input.ChildNodes)
53 if (Node is XmlElement E)
64 this.text = Children.ToArray();
73 base.ExportChildren(Output);
75 if (!(this.text is
null))
88 base.CopyContents(Destination);
92 if (!(this.text is
null))
94 int i, c = this.text.Length;
98 for (i = 0; i < c; i++)
101 Dest.text = Children;
113 if (!(this.text is
null))
126 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
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.
virtual async Task MeasureSegments(List< Segment > Segments, DrawingState State)
Measures text segments to a list of segments.
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(List< Segment > Segments, DrawingState State)
Measures text segments to a list of segments.
Abstract base class for layout elements.
ILayoutElement Copy(ILayoutElement Parent)
Creates a copy of the layout element.
Layout2DDocument Document
Layout document.
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.