Resets the specified border property to its default setting.
Overload List
Overload | Description |
Reset | Resets the specified border property to its default setting. |
Remarks
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.
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.Reset(FarPoint.Web.Spread.BorderProperty.BorderColorBottom);
} |
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.Reset(FarPoint.Web.Spread.BorderProperty.BorderColorBottom)
EndSub |
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