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


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);
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

Reference

Inset Class
Inset Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.