回复 1楼lnp119112555的帖子
我通过以下代码没有重现描述的问题,请尝试使用以下代码测试:
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- this.fpSpread1.Sheets[0].SelectionUnit = FarPoint.Win.Spread.Model.SelectionUnit.Row;
- this.fpSpread2.Sheets[0].SelectionUnit = FarPoint.Win.Spread.Model.SelectionUnit.Row;
- this.fpSpread1.SelectionRenderer = new MySelectionRender();
- this.fpSpread2.SelectionRenderer = new MySelectionRender();
- }
- }
- public class MySelectionRender : ISelectionRenderer
- {
- public void PaintSelection(Graphics g, int x, int y, int width, int height)
- {
- g.FillRectangle(Brushes.Red, new Rectangle(x, y, width, height));
- }
- }
复制代码 |