using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Serialization; namespace GeoSigma.SigmaDrawerStyle { public class PointText { //public class PtDelt //{ // public double X { get; set; } // public double Y { get; set; } // public override string ToString() // { // return $"{X},{Y}"; // } //} [XmlIgnore] public PropertyPoint Delt { get; set; } = new PropertyPoint(); [XmlAttribute("Height")] public double Height;// { get; set; } [XmlAttribute("Width")] public double Width;//{ get; set; } [XmlAttribute("Angle")] public double Angle; [XmlAttribute("DeltX")] public double DeltX { get => Delt.X; set => Delt = new PropertyPoint(value, Delt.Y); } [XmlAttribute("DeltY")] public double DeltY { get => Delt.Y; set => Delt = new PropertyPoint(Delt.X, value); } [XmlAttribute("Style")] public int Style = (int)TextStyleFlags.alignRight | (int)TextStyleFlags.alignBottom | (int)TextStyleFlags.frameNull; [XmlAttribute("FrColor")] public int FrColor; [XmlAttribute("BkColor")] public int BkColor; //public int BkColor= System.Drawing.ColorTranslator.ToWin32(System.Drawing.Color.White); [XmlAttribute("DecimalName")] public int DecimalName { get; set; } = -1; } }