Spread Windows Forms 7.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 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

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