Spread for ASP.NET 9.0 Product Documentation
Clear Method (BaseSheetSpanModel)
Example 


Removes all cell spans from the collection.
Syntax
'Declaration
 
Public Overridable Sub Clear() 
'Usage
 
Dim instance As BaseSheetSpanModel
 
instance.Clear()
public virtual void Clear()
Example
This example clears all the spans from the model.
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();
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 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

BaseSheetSpanModel Class
BaseSheetSpanModel Members

 

 


Copyright © GrapeCity, inc. All rights reserved.