Spread for ASP.NET 7.0 Product Documentation
Merge(Object,Boolean) Method
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > Border Class > Merge Method : Merge(Object,Boolean) Method


o
Object whose settings are merged with the current border
force
Whether settings are overridden in the current border

Glossary Item Box

Merges settings of the specified Border object with the current border with the option to force a merge if the settings are defined in the current border.

Syntax

Visual Basic (Declaration) 
Public Overloads Overridable Function Merge( _
   ByVal o As Object, _
   ByVal force As Boolean _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As Border
Dim o As Object
Dim force As Boolean
Dim value As Boolean
 
value = instance.Merge(o, force)
C# 
public virtual bool Merge( 
   object o,
   bool force
)

Parameters

o
Object whose settings are merged with the current border
force
Whether settings are overridden in the current border

Return Value

Boolean: true if successful; false otherwise

Remarks

This method merges settings of the specified Border object with the current Border object with the option to force a merge if the settings are defined in the current Border object.

If you set the force parameter to True, each property is copied from the specified Border object to the current Border object if the property is defined in the specified Border object. If you set the force parameter to False, each property is copied from the specified Border object to the current Border object only if the corresponding property in the current Border object is not defined.

If you always want to restrict the merging of settings to occur only if the settings are not defined in the current Border object, use the Merge(Object) method.

Example

This example merges two border objects.
C#Copy Code
FarPoint.Web.Spread.Border bord = new FarPoint.Web.Spread.Border(BorderStyle.Double, Color.Red, 2); 
FarPoint.Web.Spread.Border merge = new FarPoint.Web.Spread.Border(); 
merge.BorderStyleBottom = BorderStyle.Groove; 
merge.BorderColorBottom = Color.Orange; 
bord.Merge(merge, true); 
FpSpread1.ActiveSheetView.Cells(2, 2).Border = bord;
Visual BasicCopy Code
Dim bord As New FarPoint.Web.Spread.Border(BorderStyle.Double, Color.Red, 2)
Dim merge As New FarPoint.Web.Spread.Border
merge.BorderStyleBottom = BorderStyle.Groove
merge.BorderColorBottom = Color.Orange
bord.Merge(merge, True)
FpSpread1.ActiveSheetView.Cells(2, 2).Border = bord

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

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.