1using System.Threading.Tasks;
22 : base(Document, Parent)
37 set => this.radius = value;
45 get => this.clockwise;
46 set => this.clockwise = value;
53 public override Task
FromXml(XmlElement Input)
58 return base.FromXml(Input);
67 base.ExportAttributes(Output);
69 this.radius?.
Export(Output);
70 this.clockwise?.
Export(Output);
90 base.CopyContents(Destination);
106 await base.DoMeasureDimensions(State);
112 this.defined =
false;
116 this.clockDir = Clockwise.
Result;
118 this.defined =
false;
131 return Task.CompletedTask;
155 Path.ArcTo(this.r, this.r, 0, SKPathArcSize.Small,
156 this.clockDir ? SKPathDirection.Clockwise : SKPathDirection.CounterClockwise,
157 this.xCoordinate,
this.yCoordinate);
160 return Task.CompletedTask;
169 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.