Copies a button to a toolbar using a command ID.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function DragToolbarButtonFromCommandID( _
ByVal CommandID As System.Integer, _
ByVal TargetToolbar As System.Integer, _
ByVal TargetIndex As System.Integer _
) As System.Integer |
Visual Basic (Usage) | |
---|
Dim instance As ISldWorks
Dim CommandID As System.Integer
Dim TargetToolbar As System.Integer
Dim TargetIndex As System.Integer
Dim value As System.Integer
value = instance.DragToolbarButtonFromCommandID(CommandID, TargetToolbar, TargetIndex) |
Parameters
- CommandID
- Command ID as defined by swCommands_e
- TargetToolbar
- Toolbar as defined by swToolbar_e or if a CommandGroup toolbar, use ICommandGroup::ToolbarId
- TargetIndex
0-based index of the toolbar button on the native SOLIDWORKS toolbar or CommandGroup toolbar
Return Value
Index of the toolbar or -1 if the button is not added
See Also
Availability
SOLIDWORKS 2008 SP4, Revision Number 16.4