Spread Windows Forms 6.0 Product Documentation
Default Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > Rows Class : Default Property


Glossary Item Box

Gets a row for the default row (-1).

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property Default As Rows.DefaultRow
Visual Basic (Usage)Copy Code
Dim instance As Rows
Dim value As Rows.DefaultRow
 
value = instance.Default
C# 
public Rows.DefaultRow Default {get;}

Property Value

Rows.DefaultRow object containing the row defaults

Remarks

The defaults for style properties (such as BackColor, Font, etc.) for the rows are getting and setting the corresponding property in the DefaultRow.Parent.ParentDefaultStyle object. For example, the SheetView.Rows.Default.BackColor actually gets and sets SheetView.DefaultSytle.BackColor, which is equivalent to SheetView.Rows.Default.Parent.Parent.DefaultStyle.BackColor.

Example

This example changes the background color of all the rows in the active sheet.
C#Copy Code
fpSpread1.ActiveSheet.Rows.Default.BackColor = Color.Yellow;
Visual BasicCopy Code
FpSpread1.ActiveSheet.Rows.Default.BackColor = Color.Yellow

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.