1using System.Threading.Tasks;
23 : base(Document, Parent)
38 set => this.radiusX = value;
47 set => this.radiusY = value;
55 get => this.clockwise;
56 set => this.clockwise = value;
63 public override Task
FromXml(XmlElement Input)
69 return base.FromXml(Input);
78 base.ExportAttributes(Output);
80 this.radiusX?.
Export(Output);
81 this.radiusY?.
Export(Output);
82 this.clockwise?.
Export(Output);
102 base.CopyContents(Destination);
119 await base.DoMeasureDimensions(State);
125 this.defined =
false;
131 this.defined =
false;
135 this.clockDir = Clockwise.
Result;
137 this.defined =
false;
150 return Task.CompletedTask;
179 Path.ArcTo(this.rX, this.rY, 0, SKPathArcSize.Small,
180 this.clockDir ? SKPathDirection.Clockwise : SKPathDirection.CounterClockwise,
181 this.xCoordinate,
this.yCoordinate);
184 return Task.CompletedTask;
193 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.
static async Task< EvaluationResult< T > > TryEvaluate(Attribute< T > Attribute, Variables Session)
Tries to evaluate the attribute value.
BooleanAttribute CopyIfNotPreset(Layout2DDocument ForDocument)
Copies the attribute object if undefined, or defined by an expression. Returns a reference to itself,...
Result of asynchronous evaluation.
T Result
Evaluated result, if successful.
bool Ok
If evaluation was successful.
LengthAttribute CopyIfNotPreset(Layout2DDocument ForDocument)
Copies the attribute object if undefined, or defined by an expression. Returns a reference to itself,...
Variables Session
Current session.
void CalcDrawingSize(Length L, ref float Size, bool Horizontal, ILayoutElement Element)
Converts a defined length to drawing size.
Layout2DDocument Document
Layout document.
bool defined
If element is well-defined.
Abstract base class for layout elements with one point.
float yCoordinate
Measured Y-coordinate
float xCoordinate
Measured X-coordinate
Base interface for all layout elements.
Layout2DDocument Document
Layout document.