//图面样式选择 private void btLineShape_Click(object sender, EventArgs e) { FrmPatchLineAndArea frm = new FrmPatchLineAndArea(esriSymbologyStyleClass.esriStyleClassLinePatches); frm.ShowDialog(); if (frm.DialogResult == DialogResult.OK) { pLinePatch = frm.GetLinePatch(); if (pLinePatch != null) { this.btLineShape.Image = frm.GetImageByGiveSymbolAfterSelectItem(btLineShape.Width, btLineShape.Height); } } }
private void btLineShape_Click(object sender, EventArgs e) { FrmPatchLineAndArea Frm = new FrmPatchLineAndArea(esriSymbologyStyleClass.esriStyleClassLinePatches); Frm.ShowDialog(); if (Frm.DialogResult == DialogResult.OK) { pLinePatch = Frm.GetLinePatch(); if (pLinePatch != null) { //pLegendFormat.DefaultLinePatch = pLinePatch; btLineShape.Image = Frm.GetImageByGiveSymbolAfterSelectItem(btLineShape.Width - 14, btLineShape.Height - 14); } } }