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


o
Object to compare to

Glossary Item Box

Returns a value indicating whether the specified object is equivalent to this skin.

Syntax

Visual Basic (Declaration) 
Public Overrides Function Equals( _
   ByVal o As Object _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As SheetSkin
Dim o As Object
Dim value As Boolean
 
value = instance.Equals(o)
C# 
public override bool Equals( 
   object o
)

Parameters

o
Object to compare to

Return Value

true if the skins are equivalent; false otherwise

Example

This example queries if one skin is equal to another.
C#Copy Code
FarPoint.Web.Spread.SheetSkin sk = new FarPoint.Web.Spread.SheetSkin("TestSkin", Color.LightGoldenrodYellow, Color.Wheat,
Color.DarkGreen, 2, Color.YellowGreen, GridLines.Both, Color.Thistle, Color.BlanchedAlmond, Color.Wheat, Color.DarkBlue, Color.Empty,
Color.Empty, false, false, true, true, true);

	FarPoint.Web.Spread.SheetSkin testskin = new FarPoint.Web.Spread.SheetSkin(sk);
	bool b;
	if(IsPostBack)
	{
		b = testskin.Equals(sk);
		if (b)
		{
			testskin.Apply(FpSpread1);
		}
	}
Visual BasicCopy Code
Dim sk As New FarPoint.Web.Spread.SheetSkin("TestSkin", Color.LightGoldenrodYellow, Color.Wheat, Color.DarkGreen, 2, Color.YellowGreen,
GridLines.Both, Color.Thistle, Color.BlanchedAlmond, Color.Wheat, Color.DarkBlue, Nothing, Nothing, False, False, True, True,
True)

Dim testskin As New FarPoint.Web.Spread.SheetSkin(sk)
Dim b As Boolean
If IsPostBack Then
    b = testskin.Equals(sk)
    If b Then
        testskin.Apply(FpSpread1)
    End If
End If

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.