using System.Collections.Generic; using System.ComponentModel; using System.Drawing; #if WEB_SERVICE #else using System.Drawing.Design; #endif using System.Xml.Serialization; using SigmaDrawerStyle; namespace GeoSigma.SigmaDrawerStyle { [XmlRoot("HowToViewPoint")] [TypeConverter(typeof(PropertySorter))] public class DrawerPointStyleSymbol { [Browsable(false)] public DrawerPointStyle PointStyle { get; private set; } /// /// 属性类别排序 /// private List categorys = new List() { "文本", "符号", "Z值", "杂项" }; /// /// Initializes a new instance of the class. /// public DrawerPointStyleSymbol(DrawerPointStyle pointStyle) { this.PointStyle = pointStyle; } [XmlIgnore] [Category("符号"), DisplayName("名称"), PropertyOrder(1)] //[Editor("UCDraw.Editor.MarkEditor, UCDraw", typeof(UITypeEditor))] #if WEB_SERVICE #else [Editor("GeoSigma.SigmaDrawerStyle.PropertyEditorSymbol, GeoSigma.SigmaDrawerStyle", typeof(UITypeEditor))] #endif public SymbolNameWrapper SymbolEditor { get { return PointStyle.SymbolEditor; } set { PointStyle.SymbolEditor = value; } } [XmlIgnore] [Category("符号"), DisplayName("尺寸"), PropertyOrder(2)] [TypeConverter(typeof(PropertySizeConvert))] public SizeF SymbolSize { get { return PointStyle.SymbolSize; } set { PointStyle.SymbolSize = value; } } [XmlIgnore] [Category("符号"), DisplayName("角度"), PropertyOrder(3)] public double SymbolAngle { get { return PointStyle.SymbolAngle; } set { PointStyle.SymbolAngle = value; } } [XmlIgnore] [Browsable(true)] [Category("符号"), DisplayName("符号背景"), Description("统一显示符号背景色"), ReadOnly(false), PropertyOrder(4)] //[TypeConverter(typeof(ExpandableObjectConverter))] [TypeConverter(typeof(PropertyColorNullable.PropertyColorNullableConvert))] public PropertyColorNullable SymbolBackColor { get { return PointStyle.SymbolBackColor; } set { PointStyle.SymbolBackColor = value; } } [XmlIgnore] [Browsable(true)] [Category("符号"), DisplayName("符号前景"), Description("统一显示符号前景色"), ReadOnly(false), PropertyOrder(5)] //[TypeConverter(typeof(ExpandableObjectConverter))] [TypeConverter(typeof(PropertyColorNullable.PropertyColorNullableConvert))] public PropertyColorNullable SymbolForeColor { get { return PointStyle.SymbolForeColor; } set { PointStyle.SymbolForeColor = value; } } [XmlIgnore] [DisplayName("坐标可移动")] [TypeConverter(typeof(Converter.YesNoConverter))] public bool CanMoveCoordinate { get { return PointStyle.CanMoveCoordinate; } set { PointStyle.CanMoveCoordinate = value; } } } }