Spread for ASP.NET 7.0 Product Documentation
Appearance Constructor(Appearance)
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > Appearance Class > Appearance Constructor : Appearance Constructor(Appearance)


cellAppearance
Appearance object used to create the new object

Glossary Item Box

Creates an Appearance object based on the specified Appearance object.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal cellAppearance As Appearance _
)
Visual Basic (Usage)Copy Code
Dim cellAppearance As Appearance
 
Dim instance As New Appearance(cellAppearance)
C# 
public Appearance( 
   Appearance cellAppearance
)

Parameters

cellAppearance
Appearance object used to create the new object

Example

C#Copy Code
private void ChangeCellColor(FarPoint.Web.Spread.FpSpread s, FarPoint.Web.Spread.Cell c, FarPoint.Web.Spread.Appearance a)
{
s.ActiveSheetView.Cells[c.Row.Index, c.Column.Index].BackColor = a.BackColor;
}

FarPoint.Web.Spread.Appearance appr = new FarPoint.Web.Spread.Appearance();
appr.BackColor = Color.Red;
FarPoint.Web.Spread.Appearance appr1 = new FarPoint.Web.Spread.Appearance(appr);
FarPoint.Web.Spread.Cell c;
c = FpSpread1.ActiveSheetView.Cells[1, 1];
ChangeCellColor(FpSpread1, c, appr1);
Visual BasicCopy Code
Private Sub ChangeCellColor(ByVal s As FarPoint.Web.Spread.FpSpread, ByVal c As FarPoint.Web.Spread.Cell, ByVal a As FarPoint.Web.Spread.Appearance)
      s.ActiveSheetView.Cells(c.Row.Index, c.Column.Index).BackColor = a.BackColor
End Sub

Dim appr As New FarPoint.Web.Spread.Appearance
appr.BackColor = Color.Red
Dim appr1 As New FarPoint.Web.Spread.Appearance(appr)
Dim c As FarPoint.Web.Spread.Cell
c = FpSpread1.ActiveSheetView.Cells(1, 1)
ChangeCellColor(FpSpread1, c, appr)

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

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