GrapeCity SPREAD for Windows Forms 11.0J
ShapeProps コンストラクタ(Control)


コントロール
指定したコントロールのシェイププロパティの新しいセットを作成します。
構文
'Declaration
 
Public Function New( _
   ByVal control As Control _
)
'使用法
 
Dim control As Control
 
Dim instance As New ShapeProps(control)
public ShapeProps( 
   Control control
)

パラメータ

control
コントロール
次のサンプルコードは、四角形シェイプをコンテナに追加します。
FarPoint.Win.Spread.DrawingSpace.ShapeProps sp = new FarPoint.Win.Spread.DrawingSpace.ShapeProps(fpSpread1);
sp.Shape = new FarPoint.Win.Spread.DrawingSpace.RectangleShape();
sp.SetBounds(40, 40, 20, 20);
fpSpread1.ActiveSheet.AddShape(sp.Shape);
Dim sp As New FarPoint.Win.Spread.DrawingSpace.ShapeProps(FpSpread1)
sp.Shape = New FarPoint.Win.Spread.DrawingSpace.RectangleShape
sp.SetBounds(40, 40, 20, 20)
FpSpread1.ActiveSheet.AddShape(sp.Shape)
参照

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

 

 


© 2004-2018, GrapeCity Inc. All rights reserved.