Spread ASP.NET 6.0 Product Documentation
Remove Method
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread.Model Namespace > BaseSheetSpanModel Class : Remove Method


row
Row index of cell
column
Column index of cell

Glossary Item Box

Removes all cell spans in the collection that cover the cell at the specified row and column.

Syntax

Visual Basic (Declaration) 
Public Overridable Sub Remove( _
   ByVal row As Integer, _
   ByVal column As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As BaseSheetSpanModel
Dim row As Integer
Dim column As Integer
 
instance.Remove(row, column)
C# 
public virtual void Remove( 
   int row,
   int column
)

Parameters

row
Row index of cell
column
Column index of cell

Example

This example finds the span in the model with the specified row and column.
C#Copy Code
FarPoint.Web.Spread.Model.BaseSheetSpanModel bss;
FarPoint.Web.Spread.Model.CellRange cr;
bss = (FarPoint.Web.Spread.Model.BaseSheetSpanModel)FpSpread1.ActiveSheetView.SpanModel;
bss.Add(0, 0, 2, 2);
bss.Add(1, 2, 2, 2);

Response.Write("<script>alert('Find Span?')</script>");
cr = bss.Find(1, 2);
Response.Write("<script>alert('Remove Span?')</script>");
bss.Remove(cr.Row, cr.Column);
Visual BasicCopy Code
Dim bss As FarPoint.Web.Spread.Model.BaseSheetSpanModel
Dim cr As FarPoint.Web.Spread.Model.CellRange
bss = FpSpread1.ActiveSheetView.SpanModel
bss.Add(0, 0, 2, 2)
bss.Add(1, 2, 2, 2)

Response.Write("<script>alert('Find Span?')</script>")
cr = bss.Find(1, 2)
Response.Write("<script>alert('Remove Span?')</script>")
bss.Remove(cr.Row, cr.Column)

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.