Spread Windows Forms 7.0 Product Documentation
Changed Event
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > NamedStyle Class : Changed Event


Glossary Item Box

Occurs when the named style has changed.

Syntax

Visual Basic (Declaration) 
Public Event Changed As EventHandler
Visual Basic (Usage)Copy Code
Dim instance As NamedStyle
Dim handler As EventHandler
 
AddHandler instance.Changed, handler
C# 
public event EventHandler Changed

Remarks

The event handler receives an argument of type EventHandler containing data related to this event.

Example

This example causes the Changed event to occur for the NamedStyle object.
C#Copy Code
FarPoint.Win.Spread.NamedStyle styleevent;

private void menuItem1_Click(object sender, System.EventArgs e)
{
styleevent.BackColor = Color.LightBlue;
fpSpread1.ActiveSheet.DefaultStyle = styleevent;
}

private void Form1_Load(object sender, System.EventArgs e)
{
this.styleevent = new FarPoint.Win.Spread.NamedStyle();
this.styleevent.Changed += new System.EventHandler(this.styleevent_Changed);
}

private void styleevent_Changed(object sender, System.EventArgs e)
{
listBox1.Items.Add("Changed");
}
Visual BasicCopy Code
Friend WithEvents styleevent As New FarPoint.Win.Spread.NamedStyle()

Private Sub MenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem1.Click
styleevent.BackColor = Color.LightBlue
FpSpread1.ActiveSheet.DefaultStyle = styleevent
End Sub

Public Sub styleevent_Changed(ByVal sender As Object, ByVal e As EventArgs) Handles styleevent.Changed
ListBox1.Items.Add("Changed")
End Sub

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.