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) |
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 Basic | Copy 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