Spread ASP.NET 6.0 Product Documentation
Equals(Inset) Method
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > Inset Class > Equals Method : Equals(Inset) Method


inset
Inset object

Glossary Item Box

Determines whether the inset of the current object is the same as the specified Inset object.

Syntax

Visual Basic (Declaration) 
Public Overloads Function Equals( _
   ByVal inset As Inset _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As Inset
Dim inset As Inset
Dim value As Boolean
 
value = instance.Equals(inset)
C# 
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.
Visual BasicCopy Code
DiminsetAsNewFarPoint.Web.Spread.Inset()
DimcloneAsNewFarPoint.Web.Spread.Inset()
DimblAsBoolean
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
C#Copy Code
FarPoint.Web.Spread.Insetinset=NewFarPoint.Web.Spread.Inset();
FarPoint.Web.Spread.Insetclone=NewFarPoint.Web.Spread.Inset();
boolbl;
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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.