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.

81 lines
2.7 KiB
C#

// <copyright file="CurveFillSymbol.cs" company="PlaceholderCompany">
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
#if NET8_0
#else
using System.Drawing.Design;
#endif
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
using GeoSigmaDrawLib;
namespace GeoSigma.SigmaDrawerStyle
{
[XmlRoot("FillSymbol")]
public class CurveFillSymbol : CurveView
{
private SymbolNameWrapper symbolEditor = new SymbolNameWrapper();
/// <summary>
/// Initializes a new instance of the <see cref="CurveFillSymbol"/> class.
/// </summary>
public CurveFillSymbol()
{
TypeName = "符号充填";
}
[Category("基础属性"), DisplayName("\t\t\t符号"), Description("符号")]
[XmlIgnore]
//[Editor("UCDraw.Editor.MarkEditor, UCDraw", typeof(UITypeEditor))]
#if NET8_0
#else
[Editor("GeoSigma.SigmaDrawerStyle.PropertyEditorSymbol, GeoSigma.SigmaDrawerStyle", typeof(UITypeEditor))]
#endif
public SymbolNameWrapper SymbolEditor
{
get
{
symbolEditor.SymbolName = Name;
symbolEditor.DrawerGeo = Geo;
return symbolEditor;
}
set
{
symbolEditor = value;
this.Geo = (GeoSigmaXY)symbolEditor.DrawerGeo;
this.Name = symbolEditor.SymbolName;
}
}
[XmlAttribute("MarkName")]
[Browsable(false)]
public string Name { get; set; }
[Category("基础属性"), DisplayName("\t\t尺寸"), Description("尺寸")]
[XmlElement("Delt")]
//[TypeConverterAttribute(typeof(PropertyPointConvert))]
public PropertyPoint Delt { get; set; } = new PropertyPoint(1000, 1000);
[Category("基础属性"), DisplayName("\t\t\t间隔"), Description("间隔")]
[XmlElement("Grid")]
//[TypeConverterAttribute(typeof(PropertyPointConvert))]
public PropertyPoint Grid { get; set; } = new PropertyPoint(1000, 1000);
[Category("基础属性"), DisplayName("\t放大系数"), Description("放大系数")]
[XmlElement("Scale")]
//[TypeConverterAttribute(typeof(PropertyPointConvert))]
public PropertyPoint Scale { get; set; } = new PropertyPoint(1, 1);
[Category("基础属性"), DisplayName("显示方式"), Description("显示方式")]
[XmlAttribute("Style")]
[TypeConverter(typeof(Converter.LineTypeLiteConverter))]
public int Style { get; set; }
}
}