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


appearance
Appearance object

Glossary Item Box

Copies the appearance settings.

Syntax

Visual Basic (Declaration) 
Public Function GetAppearance( _
   ByVal appearance As Appearance _
) As Appearance
Visual Basic (Usage)Copy Code
Dim instance As GroupInfo
Dim appearance As Appearance
Dim value As Appearance
 
value = instance.GetAppearance(appearance)
C# 
public Appearance GetAppearance( 
   Appearance appearance
)

Parameters

appearance
Appearance object

Return Value

Appearance object containing the appearance settings for the group

Example

C#Copy Code
fpSpread1.BorderCollapse = FarPoint.Win.Spread.BorderCollapse.Separate;
fpSpread1.AllowColumnMove = true;
fpSpread1.ActiveSheet.GroupBarInfo.Visible = true;
fpSpread1.ActiveSheet.AllowGroup = true; 

FarPoint.Win.Spread.GroupInfo gi = new FarPoint.Win.Spread.GroupInfo();
gi.BackColor = Color.Yellow;

fpSpread1.ActiveSheet.GroupInfos.Add(gi);

FarPoint.Win.Spread.Appearance app = new FarPoint.Win.Spread.Appearance();
gi.GetAppearance(app);
MessageBox.Show(app.BackColor.ToString());
Visual BasicCopy Code
FpSpread1.BorderCollapse = FarPoint.Win.Spread.BorderCollapse.Separate
FpSpread1.AllowColumnMove = True
FpSpread1.ActiveSheet.GroupBarInfo.Visible = True
FpSpread1.ActiveSheet.AllowGroup = True

Dim gi As New FarPoint.Win.Spread.GroupInfo
gi.BackColor = Color.Yellow

FpSpread1.ActiveSheet.GroupInfos.Add(gi)

Dim app As New FarPoint.Win.Spread.Appearance
gi.GetAppearance(app)
MessageBox.Show(app.BackColor.ToString)

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.