Spread for ASP.NET 7.0 Product Documentation
Equals(Inset) Method
See Also  Example Support Options
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
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
C#Copy Code
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

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