MESCIUS SPREAD for Windows Forms 17.0J
JoinShapes メソッド (SheetView)

結合先のシェイプの名前
結合元のシェイプの名前
シートの描画コンテナー内の2つのシェイプを結合します。
構文
'Declaration
 
Public Overridable Function JoinShapes( _
   ByVal destinationShapeName As String, _
   ByVal sourceShapeName As String _
) As Boolean
public virtual bool JoinShapes( 
   string destinationShapeName,
   string sourceShapeName
)

パラメータ

destinationShapeName
結合先のシェイプの名前
sourceShapeName
結合元のシェイプの名前
次のサンプルコードは、描画空間内の2つのシェイプを結合します。
FarPoint.Win.Spread.DrawingSpace.ArrowShape a = new FarPoint.Win.Spread.DrawingSpace.ArrowShape();
a.CanMove = FarPoint.Win.Spread.DrawingSpace.Moving.HorizontalAndVertical;
a.Name = "Arrow";
fpSpread1.ActiveSheet.AddShape(a);
FarPoint.Win.Spread.DrawingSpace.RectangleShape r = new FarPoint.Win.Spread.DrawingSpace.RectangleShape();
r.CanMove = FarPoint.Win.Spread.DrawingSpace.Moving.HorizontalAndVertical;
r.Name = "Rect";
fpSpread1.ActiveSheet.AddShape(r);

private void Button1_Click(object sender, System.EventArgs e) 
{
fpSpread1.ActiveSheet.JoinShapes("Rect", "Arrow");
}
Dim a As New FarPoint.Win.Spread.DrawingSpace.ArrowShape
a.CanMove = FarPoint.Win.Spread.DrawingSpace.Moving.HorizontalAndVertical
a.Name = "Arrow"
FpSpread1.ActiveSheet.AddShape(a)
Dim r As New FarPoint.Win.Spread.DrawingSpace.RectangleShape
r.CanMove = FarPoint.Win.Spread.DrawingSpace.Moving.HorizontalAndVertical
r.Name = "Rect"
FpSpread1.ActiveSheet.AddShape(r)

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
FpSpread1.ActiveSheet.JoinShapes("Rect", "Arrow")
End Sub
参照

SheetView クラス
SheetView メンバ

 

 


© MESCIUS inc. All rights reserved.