彩票走势图

Spread Studio for .NET使用教程:创建Free-Hand注释

原创|使用教程|编辑:郝浩|2013-05-02 16:55:33.000|阅读 223 次

概述:在使用Spread.Net的时候,可以采用注释的模式创建一个Free-Hand图形。本次教程将会给出这一过程的具体示例代码。

# 慧都年终大促·界面/图表报表/文档/IDE等千款热门软控件火热促销中 >>

相关链接:

在使用Spread.Net的时候,可以采用注释的模式创建一个Free-Hand图形。

下面是具体的示例代码:

》》》免费下载Spread.Net

C#

private void button1_Click(object sender, EventArgs e)

        {

            fpSpread1.StartAnnotationMode(true);

            //fpSpread1.StartAnnotationMode();

        }

 

        private void button2_Click(object sender, EventArgs e)

        {

            fpSpread1.StopAnnotationMode();

        }

 

        private void fpSpread1_AnnotationModeStarting(object sender, FarPoint.Win.Spread.AnnotationModeEventArgs e)

        {

            

            e.DrawingSurface.ForeColor = Color.BlueViolet;

            e.DrawingSurface.BackColor = Color.Thistle;

        }

 

        private void fpSpread1_AnnotationModeEnding(object sender, FarPoint.Win.Spread.AnnotationModeEventArgs e)

        {

            listBox1.Items.Add("Stop Drawing");

        }

 

VB

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        FpSpread1.StartAnnotationMode(True)

        'FpSpread1.StartAnnotationMode()

    End Sub

 

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

        FpSpread1.StopAnnotationMode()

    End Sub

 

    Private Sub FpSpread1_AnnotationModeStarting(ByVal sender As System.Object, ByVal e As FarPoint.Win.Spread.AnnotationModeEventArgs) Handles FpSpread1.AnnotationModeStarting

        e.DrawingSurface.ForeColor = Color.BlueViolet

        e.DrawingSurface.BackColor = Color.Thistle

    End Sub

 

    Private Sub FpSpread1_AnnotationModeEnding(ByVal sender As System.Object, ByVal e As FarPoint.Win.Spread.AnnotationModeEventArgs) Handles FpSpread1.AnnotationModeEnding

        ListBox1.Items.Add("Stop Drawing")

    End Sub

标签:

本站文章除注明转载外,均为本站原创或翻译。欢迎任何形式的转载,但请务必注明出处、不得修改原文相关链接,如果存在内容上的异议请邮件反馈至chenjj@pclwef.cn

文章转载自:慧都控件网

为你推荐

  • 推荐视频
  • 推荐活动
  • 推荐产品
  • 推荐文章
  • 慧都慧问
扫码咨询


添加微信 立即咨询

电话咨询

客服热线
023-68661681

TOP