Spread Windows Forms 10.0 Product Documentation
AltRowCount Property (BaseSheetStyleModel)
Example 


Gets or sets the number of alternating row styles in the model.
Syntax
'Declaration
 
Public Overridable Property AltRowCount As Integer
'Usage
 
Dim instance As BaseSheetStyleModel
Dim value As Integer
 
instance.AltRowCount = value
 
value = instance.AltRowCount
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.
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);
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 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

BaseSheetStyleModel Class
BaseSheetStyleModel Members

 

 


Copyright © GrapeCity, inc. All rights reserved.