Skip to main content

Class Version45UpgradeHelper

Namespace: Aurigma.DesignAtoms.Serialization.Json​
Assembly: Aurigma.DesignAtoms.dll​
Syntax
public class Version45UpgradeHelper

Inheritance: System.Object -> Version45UpgradeHelper

Inherited Members​

  • System.Object.ToString
  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object,System.Object)
  • System.Object.ReferenceEquals(System.Object,System.Object)
  • System.Object.GetHashCode
  • System.Object.GetType
  • System.Object.MemberwiseClone

Constructors​

Version45UpgradeHelper​

public Version45UpgradeHelper()

Methods​

UpgradeSourceRectangle​

public static void UpgradeSourceRectangle(JObject itemJObject)
Parameters​
TypeNameDescription
Newtonsoft.Json.Linq.JObjectitemJObject

UpgradeRectangle​

public static void UpgradeRectangle(JObject itemJObject, string propertyName)
Parameters​
TypeNameDescription
Newtonsoft.Json.Linq.JObjectitemJObject
System.StringpropertyName

UpgradeRotation<T>​

public static PointF UpgradeRotation<T>(JObject itemJObject, JsonSerializer serializer, ILifetimeScope scope, string skipAlgorithmName)
where T : BaseTextItem
Parameters​
TypeNameDescription
Newtonsoft.Json.Linq.JObjectitemJObject
Newtonsoft.Json.JsonSerializerserializer
Autofac.ILifetimeScopescope
System.StringskipAlgorithmName
Returns​

Aurigma.DesignAtoms.Model.Math.PointF

SetPrintAreaTransform​

public static void SetPrintAreaTransform(JObject itemJObject, float translateX, float translateY)
Parameters​
TypeNameDescription
Newtonsoft.Json.Linq.JObjectitemJObject
System.SingletranslateX
System.SingletranslateY

ApplyPrintAreaTransform​

public static void ApplyPrintAreaTransform(JObject itemJObject, string from)
Parameters​
TypeNameDescription
Newtonsoft.Json.Linq.JObjectitemJObject
System.Stringfrom
Was this page helpful?