private void axSpreadsheet1_DblClick(object sender, IWebCalcEventSink_DblClickEvent e) { Clipboard.SetDataObject(e.eventInfo.Range.Text.ToString()); if (this.D_InsertChar != null) { this.D_InsertChar(e.eventInfo.Range.Text.ToString()); } }
private void axSpreadsheet1_DblClick(object sender, IWebCalcEventSink_DblClickEvent e) { this.m_tp.IsSaved = false; this.curCell = this.GetFirstCell(e.eventInfo.Range.Address); switch (this.CheckEditStyle(this.curCell)) { case PPCellAttach.Option: this.OnShowCellProperty(null, null); return; case PPCellAttach.Process: this.OnInsertProcessRecord(null, null); return; case PPCellAttach.History: this.OnInsertModifyRecord(null, null); return; case PPCellAttach.PageIndex: this.OnInsertPageIndex(null, null); return; case PPCellAttach.PagesCount: this.OnInsertPagesCount(null, null); return; case PPCellAttach.FormSign: case PPCellAttach.Remark: case PPCellAttach.Other: this.OnFormSignature(null, null); return; case PPCellAttach.Picture: if (PPCConvert.ToPicType(PPCardCompiler.GetXmlAttr(this.GetCellValue(this.curCell), "类型")) != InterPicType.BarCode) { this.OnInsertPicture(null, null); return; } this.OnInsertBarcode(null, null); return; case PPCellAttach.Function: this.OnFunction(null, null); return; case PPCellAttach.Unknow: this.BuildContextMenu().Show(this, new Point(e.eventInfo.X, e.eventInfo.Y)); return; } }