找回密码
 立即注册

QQ登录

只需一步,快速开始

fengzhongxia
初级会员   /  发表于:2011-3-16 22:20  /   查看:5767  /  回复:1
RT
能设置颜色了。但线条粗细和线型无法设置。
Private Sub Fpspread1_AnnotationModeStarting(ByVal sender As Object, ByVal e As Fpspread1.Win.Spread.AnnotationModeEventArgs) Handles Fpspread1.AnnotationModeStarting
        e.DrawingSurface.BackColor =Colors.Blue
        e.DrawingSurface.ForeColor = Colors.black
    End Sub

1 个回复

倒序浏览
gw0506
超级版主   /  发表于:2011-3-17 10:33:00
沙发
使用CloseFigures属性可以在结束绘制后,将Annotation保存为Shap对象。然后可以调整线条粗细。
  1.         void fpSpread1_AnnotationModeEnding(object sender, AnnotationModeEventArgs e)
  2.         {
  3.             (e.DrawingSurface as FarPoint.Win.Spread.DrawingSpace.DrawingSurface).CloseFigures = true;
  4.         }
复制代码
或者你在调用StartAnnotationMode时,直接传参数将CloseFigures置为true;
  1. this.fpSpread1.StartAnnotationMode(true);
复制代码
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部