PowerTools SPREAD for Windows Forms 8.0J
StartAnnotationMode() メソッド


アノテーション モードを開始します。
構文
'Declaration
 
Public Overloads Sub StartAnnotationMode() 
'使用法
 
Dim instance As FpSpread
 
instance.StartAnnotationMode()
public void StartAnnotationMode()
次のサンプルコードは、StartAnnotationModeメソッドを使用します。
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");           
        }
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
参照

FpSpread クラス
FpSpread メンバ
オーバーロード一覧

 

 


© 2004-2015, GrapeCity inc. All rights reserved.