AutoCAD.Net/C#.Net QQ群:193522571 程序中需要判断是attdef和text时应该把attdef放在前面

程序中需要判断是attdef和text时应该把attdef放在前面,因为attdef是text的继承类

namespace Autodesk.AutoCAD.DatabaseServices
{
    [TypeDescriptionProvider("Autodesk.AutoCAD.ComponentModel.TypeDescriptionProvider`1[[Autodesk.AutoCAD.DatabaseServices.AttributeDefinition, acdbmgd]], acdbmgd")]
    [Wrapper("AcDbAttributeDefinition")]
    public class AttributeDefinition : DBText
    {
        public AttributeDefinition();
        public AttributeDefinition(Point3d position, string value, string tag, string prompt, ObjectId style);
        protected internal AttributeDefinition(IntPtr unmanagedObjPtr, bool autoDelete);

        public bool Constant { get; set; }
        public int FieldLength { get; set; }
        public bool Invisible { get; set; }
        public bool IsMTextAttributeDefinition { get; set; }
        public bool LockPositionInBlock { get; set; }
        public MText MTextAttributeDefinition { get; set; }
        public bool Preset { get; set; }
        public string Prompt { get; set; }
        public string Tag { get; set; }
        public bool Verifiable { get; set; }

        public void UpdateMTextAttributeDefinition();
    }
}
原文地址:https://www.cnblogs.com/swtool/p/11531721.html