Spread Windows Forms 6.0 Product Documentation
RemoveShape Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : RemoveShape Method


name
Name of shape

Glossary Item Box

Removes the shape from the drawing container for the sheet.

Syntax

Visual Basic (Declaration) 
Public Overridable Function RemoveShape( _
   ByVal name As String _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim name As String
Dim value As Boolean
 
value = instance.RemoveShape(name)
C# 
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.
C#Copy Code
FarPoint.Win.Spread.DrawingSpace.ArrowShape a = new FarPoint.Win.Spread.DrawingSpace.ArrowShape();
a.Name = "arrow";
fpSpread1.ActiveSheet.AddShape(a);

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

FpSpread1.ActiveSheet.RemoveShape("arrow")

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.