FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > Border Class > Merge Method : Merge(Object) Method |
Each border setting is copied from the specified object to the current object only if the setting is not defined in the current object.
If you want the option to force the settings to be merged, even if the setting is defined in the current object, use the Merge(Object,Boolean) Method.
FarPoint.Web.Spread.Borderborder=NewFarPoint.Web.Spread.Border(BorderStyle.Dotted,Color.Red,2); FarPoint.Web.Spread.Bordercloneborder=NewFarPoint.Web.Spread.Border(); FarPoint.Web.Spread.Cellacell; acell=FpSpread1.Cells[0,0]; cloneborder.Merge(border); acell.Border=cloneborder;
DimborderAsNewFarPoint.Web.Spread.Border(BorderStyle.Dotted,Color.Red,2) DimcloneborderAsNewFarPoint.Web.Spread.Border() DimacellAsFarPoint.Web.Spread.Cell acell=FpSpread1.Cells(0,0) cloneborder.Merge(border) acell.Border=cloneborder
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