Version

GetRibbonItemArg Method

Creates a valid QTP variant value of the supplied Ribbon Item.
Syntax
'Declaration
 
Protected Function GetRibbonItemArg( _
   ByVal oRibbonItem As System.Object, _
   Optional ByVal oParentObject As System.Windows.DependencyObject, _
   Optional ByVal childToolId As System.Object, _
   Optional ByVal bIsDialogBoxLauncher As System.Boolean _
) As System.Object
protected System.object GetRibbonItemArg( 
   System.object oRibbonItem,
   System.Windows.DependencyObject oParentObject,
   System.object childToolId,
   System.bool bIsDialogBoxLauncher
)
protected: System.Object* GetRibbonItemArg( 
   System.Object* oRibbonItem,
   System.Windows.DependencyObject* oParentObject,
   System.Object* childToolId,
   System.bool bIsDialogBoxLauncher
) 

Parameters

oRibbonItem
The supplied Ribbon item
oParentObject
Optional parent of the tool
childToolId
Optional child tool identifier
bIsDialogBoxLauncher
Optional boolean of true to indicate that the tool is a dialog box launcher tool

Return Value

QTP variant value of the Ribbon Item
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