private void btShadow_Click(object sender, EventArgs e) { FrmFrameShadow Frm = new FrmFrameShadow(SymbolStyle, SymbolShadow); Frm.ShowDialog(); if (Frm.DialogResult == DialogResult.OK) { SymbolShadow = Frm.GetSymbolShadow(); if (SymbolShadow != null) { btShadow.Image = Frm.GetImageByGiveSymbolAfterSelectItem(btShadow.Width - 14, btShadow.Height - 14); } } }
//阴影 private void btShadow_Click(object sender, EventArgs e) { IFrameProperties pFrameProperties = m_pMapFrame as IFrameProperties; FrmFrameShadow Frm = new FrmFrameShadow(m_strSymbolStyle, (ISymbolShadow)pFrameProperties.Shadow); Frm.ShowDialog(); if (Frm.DialogResult == DialogResult.OK) { ISymbolShadow SymbolShadow = Frm.GetSymbolShadow(); if (SymbolShadow != null) { btShadow.Image = Frm.GetImageByGiveSymbolAfterSelectItem(btShadow.Width - 14, btShadow.Height - 14); pFrameProperties.Shadow = SymbolShadow; m_hookHelper.ActiveView.PartialRefresh(esriViewDrawPhase.esriViewGeography, null, null); } } }
private void btShadow_Click(object sender, EventArgs e) { //IFrameProperties pFrameProperties = pMapSurroundFrame as IFrameProperties; FrmFrameShadow Frm = new FrmFrameShadow(SymbolStyle, pSymbolShadow); Frm.ShowDialog(); if (Frm.DialogResult == DialogResult.OK) { pSymbolShadow = Frm.GetSymbolShadow(); if (pSymbolShadow != null) { btShadow.Image = Frm.GetImageByGiveSymbolAfterSelectItem(btShadow.Width - 14, btShadow.Height - 14); //pSymbolShadow.CornerRounding = short.Parse(txtLegendFrameAngle.Text); //pSymbolShadow.HorizontalSpacing = double.Parse(this.txtLegendFrameGap.Text); //pSymbolShadow.VerticalSpacing = double.Parse(this.txtLegendFrameGap.Text); ; //pFrameProperties.Shadow = (IShadow)pSymbolShadow; } } }