Spread Windows Forms 12.0 Product Documentation
AltRowCount Property (BaseSheetStyleModel)

FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace > BaseSheetStyleModel Class : AltRowCount Property
Gets or sets the number of alternating row styles in the model.
Public Overridable Property AltRowCount As Integer
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)
This implementation does nothing and always returns 0.
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)
See Also


BaseSheetStyleModel Class
BaseSheetStyleModel Members