private void menuItem11_Click(object sender, System.EventArgs e)
{
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);
}
private void fpSpread1_StyleModelChanged(object sender, FarPoint.Win.Spread.Model.SheetStyleModelEventArgs e)
{
listBox1.Items.Add("Changed Event Fired");
}
Private Sub MenuItem11_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem11.Click
Dim sInfo As New FarPoint.Win.Spread.StyleInfo()
sInfo.BackColor = Color.LightBlue
model = fpSpread1.ActiveSheet.Models.Style
model.AltRowCount = 3
model.SetDirectAltRowInfo(1, sInfo)
End Sub
Private Sub fpSpread1_StyleModelChanged(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.Model.SheetStyleModelEventArgs)
Handles model.Changed
stBox1.Items.Add("Changed Event Fired")
End Sub