SpreadsheetGear 2012
MediaCommand Event (SheetPresenter)






Syntax
'Declaration
 
Public Event MediaCommand As System.Windows.Media.MediaCommandEventHandler
'Usage
 
Dim instance As SheetPresenter
Dim handler As System.Windows.Media.MediaCommandEventHandler
 
AddHandler instance.MediaCommand, handler
public event System.Windows.Media.MediaCommandEventHandler MediaCommand
public event MediaCommand: System.Windows.Media.MediaCommandEventHandler; 
In JScript, you can handle the events defined by another class, but you cannot define your own.
public: __event System.Windows.Media.MediaCommandEventHandler* MediaCommand
public:
event System.Windows.Media.MediaCommandEventHandler^ MediaCommand
Event Data

The event handler receives an argument of type System.Windows.Media.MediaCommandEventArgs containing data related to this event. The following MediaCommandEventArgs properties provide information specific to this event.

PropertyDescription
HandledGets or sets a value that indicates whether the routed event has been handled.  
MediaCommandGets the media command associated with the event.  
OriginalSource (Inherited from System.Windows.RoutedEventArgs)
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

SheetPresenter Class
SheetPresenter Members

Send Feedback