PowerTools SPREAD for Windows Forms 8.0J
GetShape メソッド


シェイプの名前
シェイプを取得します。
構文
'Declaration
 
Public Overridable Function GetShape( _
   ByVal name As String _
) As PSShape
'使用法
 
Dim instance As SheetView
Dim name As String
Dim value As PSShape
 
value = instance.GetShape(name)
public virtual PSShape GetShape( 
   string name
)

パラメータ

name
シェイプの名前

戻り値の型

シェイプを含むPSShapeオブジェクト
次のサンプルコードは、シェイプの背景色を変更します。
FarPoint.Win.Spread.DrawingSpace.ArrowShape arrow = new FarPoint.Win.Spread.DrawingSpace.ArrowShape();
arrow.Name = "MyArrow";
arrow.Parent = fpSpread1;
fpSpread1.ActiveSheet.AddShape(arrow, 3, 2);

private void button1_Click(object sender, System.EventArgs e)
{
FarPoint.Win.Spread.DrawingSpace.PSShape pss;
pss = fpSpread1.ActiveSheet.GetShape("MyArrow");
pss.BackColor = Color.Red;
}
Dim arrow As New FarPoint.Win.Spread.DrawingSpace.ArrowShape
arrow.Name = "MyArrow"
arrow.Parent = FpSpread1
FpSpread1.ActiveSheet.AddShape(arrow, 3, 2)

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim pss As FarPoint.Win.Spread.DrawingSpace.PSShape
pss = FpSpread1.ActiveSheet.GetShape("MyArrow")
pss.BackColor = Color.Red
End Sub
参照

SheetView クラス
SheetView メンバ

開発者ガイド

コードによるシェイプの処理

 

 


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