private void Form1_Load(object sender, System.EventArgs e)
{
//UniversalNoシェイプを追加します
FarPoint.Win.Spread.DrawingSpace.UniversalNoShape un = new FarPoint.Win.Spread.DrawingSpace.UniversalNoShape();
un.Name = "UniversalNo-01";
un.BackColor = Color.Red;
un.ShadowColor = Color.Blue;
un.SetBounds(30, 10, 100, 100);
fpSpread1.ActiveSheet.AddShape(un);
}
private void button1_Click(object sender, System.EventArgs e)
{
//UniversalNoシェイプオブジェクトを取得します
FarPoint.Win.Spread.DrawingSpace.PSShape ps;
ps = fpSpread1.ActiveSheet.GetShape("UniversalNo-01");
// 位置/背景色/アウトライン色/ロックを変更します
ps.Left = 200;
ps.BackColor = Color.Yellow;
ps.ShapeOutlineColor = Color.Red;
ps.Locked = true;
}
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
'UniversalNoシェイプを追加します
Dim un As New FarPoint.Win.Spread.DrawingSpace.UniversalNoShape
un.Name = "UniversalNo-01"
un.BackColor = Color.Red
un.ShadowColor = Color.Blue
un.SetBounds(30, 10, 100, 100)
FpSpread1.ActiveSheet.AddShape(un)
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
'UniversalNoシェイプオブジェクトを取得します
Dim ps As FarPoint.Win.Spread.DrawingSpace.PSShape
ps = FpSpread1.ActiveSheet.GetShape("UniversalNo-01")
'位置/背景色/アウトライン色/ロックを変更します
ps.Left = 200
ps.BackColor = Color.Yellow
ps.ShapeOutlineColor = Color.Red
ps.Locked = True
End Sub