1using System.Threading.Tasks;
22 : base(Document, Parent)
32 set => this.x3 = value;
41 set => this.y3 = value;
50 set => this.ref3 = value;
57 public override Task
FromXml(XmlElement Input)
63 return base.FromXml(Input);
72 base.ExportAttributes(Output);
85 base.CopyContents(Destination);
87 if (Destination is
Point3 Dest)
102 await base.DoMeasureDimensions(State);
107 this.xCoordinate3 = P.
X;
108 this.yCoordinate3 = P.
Y;
111 this.defined =
false;
130 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.
LengthAttribute CopyIfNotPreset(Layout2DDocument ForDocument)
Copies the attribute object if undefined, or defined by an expression. Returns a reference to itself,...
StringAttribute CopyIfNotPreset(Layout2DDocument ForDocument)
Copies the attribute object if undefined, or defined by an expression. Returns a reference to itself,...
Layout2DDocument Document
Layout document.
async Task< CalculatedPoint > CalcPoint(DrawingState State, LengthAttribute XAttribute, LengthAttribute YAttribute, StringAttribute RefAttribute, float X, float Y)
Includes a point in the area measurement.
Abstract base class for layout elements with two points.
Abstract base class for layout elements with three points.
float xCoordinate3
Measured X-coordinate
override void ExportAttributes(XmlWriter Output)
Exports attributes to XML.
override async Task DoMeasureDimensions(DrawingState State)
Measures layout entities and defines unassigned properties, related to dimensions.
override Task FromXml(XmlElement Input)
Populates the element (including children) with information from its XML definition.
Point3(Layout2DDocument Document, ILayoutElement Parent)
Abstract base class for layout elements with three points.
override void CopyContents(ILayoutElement Destination)
Copies contents (attributes and children) to the destination element.
LengthAttribute X3Attribute
X-coordinate 3
override void ExportStateAttributes(XmlWriter Output)
Exports the local attributes of the current element.
StringAttribute Reference3Attribute
Reference 3
float yCoordinate3
Measured Y-coordinate
LengthAttribute Y3Attribute
Y-coordinate 3
Base interface for all layout elements.
Layout2DDocument Document
Layout document.
Represents a calculated point.
bool Ok
If point is successfully evaluated