コード例 #1
0
 public FrmScaleTextAttribute(IStyleGalleryItem pstyleGalleryItem)
 {
     InitializeComponent();
     this.EnableGlass = false;
     StyleGalleryItem = pstyleGalleryItem;
     CancelStyleGItem = pstyleGalleryItem;
     ScaleText        = StyleGalleryItem.Item as IScaleText2;
     SeparatorType    = ScaleText.Separator;
     FrmIndex         = 1;
 }
コード例 #2
0
        //属性调用构造器
        public FrmScaleTextAttribute(string[] symbolstyle, IElement element, IGraphicsContainer graphicscontainer, IHookHelper hookhelper)
        {
            InitializeComponent();
            SymbolStyle        = symbolstyle;
            pElement           = element;
            pGraphicsContainer = graphicscontainer;
            m_hookHelper       = hookhelper;

            pMapSurroundFrame = (IMapSurroundFrame)pElement;

            ScaleText = pMapSurroundFrame.MapSurround as IScaleText2;

            FrmIndex = 2;
        }