using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Drawing; #if WEB_SERVICE #else using System.Drawing.Design; using System.Windows.Forms; #endif using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; using System.Xml.Serialization; using GeoSigma.SigmaDrawerStyle.Converter; using GeoSigmaDrawLib; using SigmaDrawerStyle; namespace GeoSigma.SigmaDrawerStyle { [XmlRoot("HowToViewPoint")] [TypeConverter(typeof(PropertySorter))] public class DrawerPointStyleZValue { [Browsable(false)] public DrawerPointStyle PointStyle { get; private set; } public DrawerPointStyleZValue(DrawerPointStyle pointStyle) { PointStyle = pointStyle; } [XmlIgnore] [Category("Z值"), DisplayName("字体"), PropertyOrder(1)] [TypeConverter(typeof(FontPropertyConvert))] public Font TextZFont { get { return PointStyle.TextZFont; } set { PointStyle.TextZFont = value; } } // private bool _FixScale = true; // [XmlIgnore] // [Category("\t文本"), DisplayName("\t\t\t\t\t\t固定长宽比例")] // [TypeConverter(typeof(Converter.YesNoConverter))] // public bool FixScale { get=>_FixScale; set=>_FixScale = value; } private PropertySize zSize; [XmlIgnore] [Category("Z值"), DisplayName("尺寸"), PropertyOrder(2)] [TypeConverter(typeof(PropertyScaleSizeConvert))] public PropertySize ZSize { get { return PointStyle.ZSize; } set { PointStyle.ZSize = value; } } [XmlIgnore] [Category("Z值"), DisplayName("角度"), PropertyOrder(3)] public double ZAngle { get { return PointStyle.ZAngle; } set { PointStyle.ZAngle = value; } } [XmlIgnore] [Category("Z值"), DisplayName("偏移"), PropertyOrder(4)] public PropertyPoint ZOffset { get => PointStyle.ZOffset; set => PointStyle.ZOffset = value; } [XmlIgnore] [Category("Z值"), DisplayName("水平对齐"), PropertyOrder(5)] [TypeConverter(typeof(Converter.AlignHorizionConverter))] public int ZAlignHorizion { get { return PointStyle.ZAlignHorizion; } set { PointStyle.ZAlignHorizion = value; } } [XmlIgnore] [Category("Z值"), DisplayName("垂直对齐"), PropertyOrder(6)] [TypeConverter(typeof(Converter.AlignVerticalConverter))] public int ZAlignVertical { get { return PointStyle.ZAlignVertical; } set { PointStyle.ZAlignVertical = value; } } [XmlIgnore] [Category("Z值"), DisplayName("文字边框"), PropertyOrder(7)] [TypeConverter(typeof(Converter.BorderTypeConverter))] public int ZBorderType { get { return PointStyle.ZBorderType; } set { PointStyle.ZBorderType = value; } } [XmlIgnore] [Category("Z值"), DisplayName("前景色"), PropertyOrder(8)] #if WEB_SERVICE #else [Editor(typeof(PropertyEditorColor), typeof(UITypeEditor))] #endif //[TypeConverter(typeof(PropertyColorIndicatorConvert))] public Color? ZForeColor { get { return PointStyle.ZForeColor; } set { PointStyle.ZForeColor = value; } } [XmlIgnore] [Category("Z值"), DisplayName("Z值背景"), PropertyOrder(9)] [TypeConverter(typeof(PropertyColorNullable.PropertyColorNullableConvert))] public PropertyColorNullable ZBackColor { get { return PointStyle.ZBackColor; } set { PointStyle.ZBackColor = value; } } } }