1using System.Threading.Tasks;
20 : base(Document, Parent)
35 set => this.columns = value;
42 public override Task
FromXml(XmlElement Input)
45 return base.FromXml(Input);
54 base.ExportAttributes(Output);
56 this.columns?.
Export(Output);
67 return new Grid(Document, Parent);
76 base.CopyContents(Destination);
78 if (Destination is
Grid Dest)
89 int NrColumns = await this.columns.Evaluate(State.
Session, 1);
100 base.ExportStateAttributes(Output);
Contains a 2D layout document.
void Export(XmlWriter Output)
Exports the attribute.
void ExportState(XmlWriter Output)
Exports the state of the attribute.
Positive integer attribute
PositiveIntegerAttribute CopyIfNotPreset(Layout2DDocument ForDocument)
Copies the attribute object if undefined, or defined by an expression. Returns a reference to itself,...
Variables Session
Current session.
Lays out cells in a grid.
override ILayoutElement Create(Layout2DDocument Document, ILayoutElement Parent)
Creates a new instance of the layout element.
override void ExportStateAttributes(XmlWriter Output)
Exports the local attributes of the current element.
override string LocalName
Local name of type of element.
override void ExportAttributes(XmlWriter Output)
Exports attributes to XML.
override async Task< ICellLayout > GetCellLayout(DrawingState State)
Gets a cell layout object that will be responsible for laying out cells.
override void CopyContents(ILayoutElement Destination)
Copies contents (attributes and children) to the destination element.
PositiveIntegerAttribute ColumnsAttribute
Columns
Grid(Layout2DDocument Document, ILayoutElement Parent)
A grid of cells
override Task FromXml(XmlElement Input)
Populates the element (including children) with information from its XML definition.
Abstract base class of elements that do spatial distribution of children.
Layout2DDocument Document
Layout document.
Base interface for all layout elements.
Layout2DDocument Document
Layout document.