Spread Silverlight Documentation
Message Property (InvalidOperationEventArgs)
Example 


GrapeCity.Windows.SpreadSheet.UI Namespace > InvalidOperationEventArgs Class : Message Property
Gets the description of the invalid operation.
Syntax
'Declaration
 
Public ReadOnly Property Message As System.String
'Usage
 
Dim instance As InvalidOperationEventArgs
Dim value As System.String
 
value = instance.Message
public System.string Message {get;}

Property Value

The description of the invalid operation.
Example
This example uses the Message property.
private void gcSpreadSheet1_InvalidOperation(object sender, GrapeCity.Windows.SpreadSheet.UI.InvalidOperationEventArgs e)
        {
            listBox1.Items.Add(e.Message.ToString());
        }

private void gcSpreadSheet1_LeaveCell(object sender, GrapeCity.Windows.SpreadSheet.UI.LeaveCellEventArgs e)
        {
            listBox1.Items.Add(e.Column.ToString());
            listBox1.Items.Add(e.Row.ToString());
        }
Private Sub GcSpreadSheet1_InvalidOperation(sender As System.Object, e As GrapeCity.Windows.SpreadSheet.UI.InvalidOperationEventArgs) Handles GcSpreadSheet1.InvalidOperation
        ListBox1.Items.Add(e.Message.ToString())
    End Sub

Private Sub GcSpreadSheet1_LeaveCell(sender As System.Object, e As GrapeCity.Windows.SpreadSheet.UI.LeaveCellEventArgs) Handles GcSpreadSheet1.LeaveCell
        ListBox1.Items.Add(e.Column.ToString())
        ListBox1.Items.Add(e.Row.ToString())
    End Sub
See Also

Reference

InvalidOperationEventArgs Class
InvalidOperationEventArgs Members