回复 1楼miyaminn的帖子
请通过以下代码获取:
- private void Form1_Load(object sender, EventArgs e)
- {
- TextCellType tc = new TextCellType();
- this.fpSpread1.ActiveSheet.Columns[0].CellType = tc;
- this.fpSpread1.EditModeOn += fpSpread1_EditModeOn;
- }
- GeneralEditor editor;
- void fpSpread1_EditModeOn(object sender, EventArgs e)
- {
- editor = this.fpSpread1.EditingControl as GeneralEditor;
- }
- private void getSelToolStripMenuItem_Click(object sender, EventArgs e)
- {
- if (editor!=null)
- {
- int length = editor.SelectionLength;
- string seltext = editor.SelectedText;
- }
- }
复制代码
为了给你提供更优质的服务,请对本次服务进行评分。我们会认真对待你提出的宝贵意见,谢谢 |