Spread for ASP.NET 11 Product Documentation
Equals(Inset) Method
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > Inset Class > Equals Method : Equals(Inset) Method
Inset object
Determines whether the inset of the current object is the same as the specified Inset object.
Syntax
'Declaration
 
Public Overloads Function Equals( _
   ByVal inset As Inset _
) As Boolean
'Usage
 
Dim instance As Inset
Dim inset As Inset
Dim value As Boolean
 
value = instance.Equals(inset)
public bool Equals( 
   Inset inset
)

Parameters

inset
Inset object

Return Value

true if the insets are equal; false otherwise
Example
This example creates two Inset objects and copies the first objects settings to the seconds. The second instance of the Inset object is then queried to see if it equals the first instance and the result is returned to a text box.
Dim inset As New FarPoint.Web.Spread.Inset()
Dim clone As New FarPoint.Web.Spread.Inset()
Dim bl As Boolean
inset.Bottom=35
inset.Left=35
inset.Right=5
inset.Top=5
clone.Bottom=inset.Bottom
clone.Left=inset.Left
clone.Right=inset.Right
clone.Top=inset.Top
bl=clone.Equals(inset)
TextBox1.Text=bl
FarPoint.Web.Spread.Inset inset=new FarPoint.Web.Spread.Inset();
FarPoint.Web.Spread.Inset clone=new FarPoint.Web.Spread.Inset();
bool bl;
inset.Bottom=35;
inset.Left=35;
inset.Right=5;
inset.Top=5;
clone.Bottom=inset.Bottom;
clone.Left=inset.Left;
clone.Right=inset.Right;
clone.Top=inset.Top;
bl=clone.Equals(inset);
TextBox1.Text=Convert.ToString(bl);
See Also

Reference

Inset Class
Inset Members
Overload List