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


Glossary Item Box

Removes all cell spans from the collection.

Syntax

Visual Basic (Declaration) 
Public Overridable Sub Clear() 
Visual Basic (Usage)Copy Code
Dim instance As BaseSheetSpanModel
 
instance.Clear()
C# 
public virtual void Clear()

Example

This example clears all the spans from the model.
C#Copy Code
FarPoint.Web.Spread.Model.BaseSheetSpanModel bss;
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('Clear Spans?')</script>");
bss.Clear();
Visual BasicCopy Code
Dim bss As FarPoint.Web.Spread.Model.BaseSheetSpanModel
bss = FpSpread1.ActiveSheetView.SpanModel
bss.Add(0, 0, 2, 2)
bss.Add(1, 2, 2, 2)

Response.Write("<script>alert('Clear Spans?')</script>")
bss.Clear()

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.