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


Glossary Item Box

Gets or sets the number of alternating row styles in the model.

Syntax

Visual Basic (Declaration) 
Public Overridable Property AltRowCount As Integer
Visual Basic (Usage)Copy Code
Dim instance As BaseSheetStyleModel
Dim value As Integer
 
instance.AltRowCount = value
 
value = instance.AltRowCount
C# 
public virtual int AltRowCount {get; set;}

Property Value

Integer number of alternating rows (always returns 0)

Remarks

This implementation does nothing and always returns 0.

Example

This example sets the number of alternating rows in the model.
C#Copy Code
FarPoint.Win.Spread.Model.BaseSheetStyleModel styleModel;
FarPoint.Win.Spread.StyleInfo sInfo = new FarPoint.Win.Spread.StyleInfo();
sInfo.BackColor = Color.LightBlue;
styleModel = (FarPoint.Win.Spread.Model.BaseSheetStyleModel)fpSpread1.ActiveSheet.Models.Style;
styleModel.AltRowCount = 3;
styleModel.SetDirectAltRowInfo(1, sInfo);
Visual BasicCopy Code
Dim styleModel As FarPoint.Win.Spread.Model.BaseSheetStyleModel
Dim sInfo As New FarPoint.Win.Spread.StyleInfo()
sInfo.BackColor = Color.LightBlue
styleModel = FpSpread1.ActiveSheet.Models.Style
styleModel.AltRowCount = 3
styleModel.SetDirectAltRowInfo(1, sInfo)

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.