1using System.Threading.Tasks;
22 : base(Document, Parent)
36 get => this.translateX;
37 set => this.translateX = value;
45 get => this.translateY;
46 set => this.translateY = value;
53 public override Task
FromXml(XmlElement Input)
58 return base.FromXml(Input);
67 base.ExportAttributes(Output);
69 this.translateX?.
Export(Output);
70 this.translateY?.
Export(Output);
90 base.CopyContents(Destination);
105 await base.AfterMeasureDimensions(State);
119 SKMatrix M = SKMatrix.CreateTranslation(this.dx, this.dy);
132 SKMatrix M = State.
Canvas.TotalMatrix;
133 State.
Canvas.Translate(this.dx, this.dy);
135 await base.Draw(State);
137 State.
Canvas.SetMatrix(M);
146 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.
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,...
SKCanvas Canvas
Current drawing canvas.
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.
void TransformBoundingBox(SKMatrix M)
Transforms the measured bounding box.
Base interface for all layout elements.
Layout2DDocument Document
Layout document.