FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread 名前空間 > SheetView クラス > AddShape メソッド : AddShape(PSShape,Int32,Int32,Int32,Int32,Boolean) メソッド |
'Declaration
Public Overloads Overridable Function AddShape( _ ByVal shape As PSShape, _ ByVal row As Integer, _ ByVal column As Integer, _ ByVal rowPixelOffset As Integer, _ ByVal columnPixelOffset As Integer, _ ByVal attachedToCell As Boolean _ ) As Integer
'使用法
Dim instance As SheetView Dim shape As PSShape Dim row As Integer Dim column As Integer Dim rowPixelOffset As Integer Dim columnPixelOffset As Integer Dim attachedToCell As Boolean Dim value As Integer value = instance.AddShape(shape, row, column, rowPixelOffset, columnPixelOffset, attachedToCell)
public virtual int AddShape( PSShape shape, int row, int column, int rowPixelOffset, int columnPixelOffset, bool attachedToCell )
FarPoint.Win.Spread.DrawingSpace.ArrowShape arrow = new FarPoint.Win.Spread.DrawingSpace.ArrowShape(); arrow.Parent = fpSpread1; fpSpread1.ActiveSheet.AddShape(arrow, 2, 2, 5, 5, true);
Dim arrow As New FarPoint.Win.Spread.DrawingSpace.ArrowShape() arrow.Parent = FpSpread1 FpSpread1.ActiveSheet.AddShape(arrow, 2, 2, 3, 3, 4, 4, 6, 6, False)