Version

GetToolId Method

Returns the identifier of the given tool
Syntax
'Declaration
 
Protected Function GetToolId( _
   ByVal oParent As System.Object, _
   ByVal ribbonTool As System.Windows.DependencyObject, _
   Optional ByVal bGalleryPreview As System.Boolean _
) As System.Object
protected System.object GetToolId( 
   System.object oParent,
   System.Windows.DependencyObject ribbonTool,
   System.bool bGalleryPreview
)
protected: System.Object* GetToolId( 
   System.Object* oParent,
   System.Windows.DependencyObject* ribbonTool,
   System.bool bGalleryPreview
) 

Parameters

oParent
Parent of the given ribbon tool
ribbonTool
The ribbon tool
bGalleryPreview
Optional boolean of true to indicate that the tool belongs to the gallery tool's preview area

Return Value

Returns the identifier of the given tool
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