Spread for ASP.NET 9.0 Product Documentation
Reset Method (Border)
Example 


Resets the specified border property to its default setting.
Overload List
OverloadDescription
ResetResets the specified border property to its default setting.  
Remarks

Use this method to reset any of the property settings back to "Not Set". See the list of properties on the page of Border Class Members.

If you want to reset all border properties, use the ResetAll method.

Example
This example creates a Border object, sets several of its properties, then Resets the BorderColorBottom property to its default value in a ButtonClick event.
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.Reset(FarPoint.Web.Spread.BorderProperty.BorderColorBottom);
}
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.Reset(FarPoint.Web.Spread.BorderProperty.BorderColorBottom)
EndSub
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

Border Class
Border Members
ResetAll Method

 

 


Copyright © GrapeCity, inc. All rights reserved.