You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.5 KiB
C#
60 lines
1.5 KiB
C#
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);
|
|
|
|
}
|
|
}
|