1using System.Threading.Tasks;
22 : base(Document, Parent)
32 set => this.x2 = value;
41 set => this.y2 = value;
50 set => this.ref2 = 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
Point2 Dest)
102 await base.DoMeasureDimensions(State);
107 this.xCoordinate2 = P.
X;
108 this.yCoordinate2 = 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.
LengthAttribute X2Attribute
X-coordinate 2
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.
float yCoordinate2
Measured Y-coordinate
float xCoordinate2
Measured X-coordinate
LengthAttribute Y2Attribute
Y-coordinate 2
Point2(Layout2DDocument Document, ILayoutElement Parent)
Abstract base class for layout elements with two points.
override void ExportStateAttributes(XmlWriter Output)
Exports the local attributes of the current element.
override void CopyContents(ILayoutElement Destination)
Copies contents (attributes and children) to the destination element.
StringAttribute Reference2Attribute
Reference 2
Abstract base class for layout elements with one point.
Base interface for all layout elements.
Layout2DDocument Document
Layout document.
Represents a calculated point.
bool Ok
If point is successfully evaluated