Beispiel #1
0
        //边框、背景、阴影
        private void btBorder_Click(object sender, EventArgs e)
        {
            FrmFrameBorder Frm = new FrmFrameBorder(SymbolStyle, SymbolBorder);

            Frm.ShowDialog();
            if (Frm.DialogResult == DialogResult.OK)
            {
                SymbolBorder = Frm.GetSymbolBorder();
                if (SymbolBorder != null)
                {
                    btBorder.Image = Frm.GetImageByGiveSymbolAfterSelectItem(btBorder.Width - 14, btBorder.Height - 14);
                }
            }
        }
        //边框
        private void btBorder_Click(object sender, EventArgs e)
        {
            IFrameProperties pFrameProperties = m_pMapFrame as IFrameProperties;
            //pFrameProperties.Border = SymbolBorder;
            FrmFrameBorder Frm = new FrmFrameBorder(m_strSymbolStyle, (ISymbolBorder)pFrameProperties.Border);

            if (Frm.ShowDialog() == DialogResult.OK)
            {
                ISymbolBorder SymbolBorder = Frm.GetSymbolBorder();
                if (SymbolBorder != null)
                {
                    btBorder.Image          = Frm.GetImageByGiveSymbolAfterSelectItem(btBorder.Width - 14, btBorder.Height - 14);
                    pFrameProperties.Border = SymbolBorder;
                    m_hookHelper.ActiveView.PartialRefresh(esriViewDrawPhase.esriViewGeography, null, null);
                }
            }
        }
Beispiel #3
0
        //框架、阴影、背景样式
        private void btBorder_Click(object sender, EventArgs e)
        {
            //IFrameProperties pFrameProperties = pMapSurroundFrame as IFrameProperties;
            FrmFrameBorder Frm = new FrmFrameBorder(SymbolStyle, pSymbolBorder);

            Frm.ShowDialog();
            if (Frm.DialogResult == DialogResult.OK)
            {
                pSymbolBorder = Frm.GetSymbolBorder();
                if (pSymbolBorder != null)
                {
                    btBorder.Image = Frm.GetImageByGiveSymbolAfterSelectItem(btBorder.Width - 14, btBorder.Height - 14);
                    //pSymbolBorder.Gap = double.Parse(this.txtLegendFrameGap.Text);
                    //pSymbolBorder.CornerRounding = short.Parse(txtLegendFrameAngle.Text);
                    //pFrameProperties.Border = (IBorder)pSymbolBorder;
                }
            }
        }