Spread for ASP.NET 10 Product Documentation
Merge(Object) Method
Example 


Object whose settings are merged with the current border
Merges settings of the specified Border object with the current border.
Syntax
'Declaration
 
Public Overloads Overridable Function Merge( _
   ByVal o As Object _
) As Boolean
'Usage
 
Dim instance As Border
Dim o As Object
Dim value As Boolean
 
value = instance.Merge(o)
public virtual bool Merge( 
   object o
)

Parameters

o
Object whose settings are merged with the current border

Return Value

Boolean: true if successful; false otherwise
Remarks

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.

Example
This example creates two Border objects and merges the first objects settings into the seconds and applies those settings to an instance of a Cell object.
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
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
Overload List
Merge(Object,Boolean) Method

 

 


Copyright © GrapeCity, inc. All rights reserved.