Spread Windows Forms 6.0 Product Documentation
CopyFrom Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > TipAppearance Class : CopyFrom Method


appearance
Object with appearance settings

Glossary Item Box

Copies the settings of the specified set of tip appearance settings to this tip.

Syntax

Visual Basic (Declaration) 
Public Sub CopyFrom( _
   ByVal appearance As TipAppearance _
) 
Visual Basic (Usage)Copy Code
Dim instance As TipAppearance
Dim appearance As TipAppearance
 
instance.CopyFrom(appearance)
C# 
public void CopyFrom( 
   TipAppearance appearance
)

Parameters

appearance
Object with appearance settings

Example

This example shows how to copy the background color to a new object.
C#Copy Code
FarPoint.Win.Spread.TipAppearancetipclone=newFarPoint.Win.Spread.TipAppearance();
tipclone.BackColor=Color.Gold;
FarPoint.Win.Spread.TipAppearancenewtip=newFarPoint.Win.Spread.TipAppearance();
newtip.CopyFrom(tipclone);

fpSpread1.TextTipPolicy=FarPoint.Win.Spread.TextTipPolicy.Floating;
fpSpread1.TextTipDelay=1000;
Visual BasicCopy Code
DimtipcloneAsNewFarPoint.Win.Spread.TipAppearance
tipclone.BackColor=Color.Gold
DimnewtipAsNewFarPoint.Win.Spread.TipAppearance
newtip.CopyFrom(clone)

FpSpread1.TextTipPolicy=FarPoint.Win.Spread.TextTipPolicy.Floating
FpSpread1.TextTipDelay=1000

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

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