FarPoint.Win.Spread.Model.ISheetStyleModel issm;
FarPoint.Win.Spread.NamedStyle ns = new FarPoint.Win.Spread.NamedStyle("StyleData");
issm = (FarPoint.Win.Spread.Model.ISheetStyleModel)fpSpread1.ActiveSheet.Models.Style;
issm.Changed += new FarPoint.Win.Spread.Model.SheetStyleModelEventHandler(issm_Changed);
ns.BackColor = Color.Yellow;
fpSpread1.NamedStyles.Add(ns);
issm.SetDirectInfo(0, 0, ns);
private void issm_Changed(object sender, FarPoint.Win.Spread.Model.SheetStyleModelEventArgs e)
{
label1.Text = "The Model has Changed!!";
}
Friend WithEvents issm As FarPoint.Win.Spread.Model.ISheetStyleModel
Dim ns As New FarPoint.Win.Spread.NamedStyle("StyleData")
Dim b As Boolean
issm = FpSpread1.ActiveSheet.Models.Style
ns.BackColor = Color.Yellow
FpSpread1.NamedStyles.Add(ns)
issm.SetDirectInfo(0, 0, ns)
Private Sub issm_Changed(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.Model.SheetStyleModelEventArgs) Handles issm.Changed
Label1.Text = "The Model has Changed!!"
End Sub