Foreign/RibbonLib_v2.6/Ribbon/Controls/Events/ExecuteEventsProvider.cs
/// <summary>
/// Handles IUICommandHandler.Execute function for supported events
/// </summary>
/// <param name="verb">the mode of execution</param>
/// <param name="key">the property that has changed</param>
/// <param name="currentValue">the new value of the property that has changed</param>
/// <param name="commandExecutionProperties">additional data for this execution</param>
/// <returns>Returns S_OK if successful, or an error value otherwise</returns>
Handles IUICommandHandler.Execute function for supported events
Handles IUICommandHandler . Execute function for supported events
public override HRESULT Execute(ExecutionVerb verb, PropertyKeyRef key, PropVariantRef currentValue, IUISimplePropertySet commandExecutionProperties)
        {
            if (verb == ExecutionVerb.Execute)
            {
                if (ExecuteEvent != null)
                {
                    ExecuteEvent(_sender, new ExecuteEventArgs(key, currentValue, commandExecutionProperties));
                }
            }
            return HRESULT.S_OK;
        }
public override HRESULT Execute ( ExecutionVerb verb , PropertyKeyRef key , PropVariantRef currentValue , IUISimplePropertySet commandExecutionProperties ) { if ( verb == ExecutionVerb . Execute ) { if ( ExecuteEvent != null ) { ExecuteEvent ( _sender , new ExecuteEventArgs ( key , currentValue , commandExecutionProperties ) ) ; } } return HRESULT . S_OK ; }
Handles IUICommandHandler.Execute function for supported events
Handles IUICommandHandler . Execute function for supported events
Returns S_OK if successful, or an error value otherwise
Returns S_OK if successful or an error value otherwise
verb
ExecutionVerb
the mode of execution
the mode of execution
key
PropertyKeyRef
the property that has changed
the property that has changed
currentValue
PropVariantRef
the new value of the property that has changed
the new value of the property that has changed
commandExecutionProperties
IUISimplePropertySet
additional data for this execution
additional data for this execution