• <menu id="w2i4a"></menu>
  • logo Spread Studio for .NET使用教程
    文檔首頁(yè)>>Spread Studio for .NET使用教程>>Spread Studio for .NET使用教程:創(chuàng)建Free-Hand注釋

    Spread Studio for .NET使用教程:創(chuàng)建Free-Hand注釋


    在使用Spread.Net的時(shí)候,可以采用注釋的模式創(chuàng)建一個(gè)Free-Hand圖形。

    下面是具體的示例代碼:

    》》》免費(fèi)下載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
    
    掃碼咨詢


    添加微信 立即咨詢

    電話咨詢

    客服熱線
    023-68661681

    TOP
    三级成人熟女影院,欧美午夜成人精品视频,亚洲国产成人乱色在线观看,色中色成人论坛 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();