Spread Windows Forms 10.0 Product Documentation
RemoveShape Method
Example 


Name of shape
Removes the shape from the drawing container for the sheet.
Syntax
'Declaration
 
Public Overridable Function RemoveShape( _
   ByVal name As String _
) As Boolean
'Usage
 
Dim instance As SheetView
Dim name As String
Dim value As Boolean
 
value = instance.RemoveShape(name)
public virtual bool RemoveShape( 
   string name
)

Parameters

name
Name of shape

Return Value

Boolean: true if successful; false otherwise
Example
This example deletes the specified arrow shape from the sheet container.
FarPoint.Win.Spread.DrawingSpace.ArrowShape a = new FarPoint.Win.Spread.DrawingSpace.ArrowShape();
a.Name = "arrow";
fpSpread1.ActiveSheet.AddShape(a);

fpSpread1.ActiveSheet.RemoveShape("arrow");
Dim a As New FarPoint.Win.Spread.DrawingSpace.ArrowShape
a.Name = "arrow"
FpSpread1.ActiveSheet.AddShape(a)

FpSpread1.ActiveSheet.RemoveShape("arrow")
Requirements

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

See Also

Reference

SheetView Class
SheetView Members
ClearShapes Method

User-Task Documentation

Working with Shapes

 

 


Copyright © GrapeCity, inc. All rights reserved.