Resets all border property settings to their default values.
Syntax
Visual Basic (Declaration) | |
---|
Public Overridable Sub ResetAll() |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As Border
instance.ResetAll() |
C# | |
---|
public virtual void ResetAll() |
Remarks
Example
This example creates a Border object, sets several of its properties, then in a ButtonClick event Resets all the properties to their default values.
C# | Copy Code |
---|
FarPoint.Web.Spread.Borderborder=newFarPoint.Web.Spread.Border();
FarPoint.Web.Spread.Cellacell;
acell=FpSpread1.Cells[0,0];
border.BorderColorBottom=Color.Red;
border.BorderColorRight=Color.Green;
border.BorderSize=2;
acell.Border=border;
privatevoidButton1_Click(objectsender,System.EventArgse)
{
border.ResetAll();
} |
Visual Basic | Copy Code |
---|
DimborderAsNewFarPoint.Web.Spread.Border()
DimacellAsFarPoint.Web.Spread.Cell
acell=FpSpread1.Cells(0,0)
border.BorderColorBottom=Color.Red
border.BorderColorRight=Color.Green
border.BorderSize=2
acell.Border=border
PrivateSubButton1_Click(ByValsenderAsSystem.Object,ByValeAsSystem.EventArgs)HandlesButton1.Click
border.ResetAll()
EndSub |
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