FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class > AddShape Method : AddShape(PSShape,Int32,Int32,Int32,Int32,Int32,Int32,Int32,Int32,Boolean) Method |
'Declaration Public Overloads Overridable Function AddShape( _ ByVal shape As PSShape, _ ByVal fromRow As Integer, _ ByVal fromColumn As Integer, _ ByVal fromRowPixelOffset As Integer, _ ByVal fromColumnPixelOffset As Integer, _ ByVal toRow As Integer, _ ByVal toColumn As Integer, _ ByVal toRowPixelOffset As Integer, _ ByVal toColumnPixelOffset As Integer, _ ByVal attachedToCell As Boolean _ ) As Integer
'Usage Dim instance As SheetView Dim shape As PSShape Dim fromRow As Integer Dim fromColumn As Integer Dim fromRowPixelOffset As Integer Dim fromColumnPixelOffset As Integer Dim toRow As Integer Dim toColumn As Integer Dim toRowPixelOffset As Integer Dim toColumnPixelOffset As Integer Dim attachedToCell As Boolean Dim value As Integer value = instance.AddShape(shape, fromRow, fromColumn, fromRowPixelOffset, fromColumnPixelOffset, toRow, toColumn, toRowPixelOffset, toColumnPixelOffset, attachedToCell)
public virtual int AddShape( PSShape shape, int fromRow, int fromColumn, int fromRowPixelOffset, int fromColumnPixelOffset, int toRow, int toColumn, int toRowPixelOffset, int toColumnPixelOffset, bool attachedToCell )
FarPoint.Win.Spread.DrawingSpace.ArrowShape arrow = new FarPoint.Win.Spread.DrawingSpace.ArrowShape(); arrow.Parent = fpSpread1; fpSpread1.ActiveSheet.AddShape(arrow, 2, 2, 3, 3, 4, 4, 6, 6, false);
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)
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10