Removes all cell spans from the collection.
Syntax
Visual Basic (Declaration) | |
---|
Public Overridable Sub 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 Basic | Copy 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 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6
See Also