IUIX_CmdPane::InsertBar Method
From PDF XChange PDF SDK
Inserts command bar into the command pane's command line into given position.
Syntax
HRESULT InsertBar([in] IUIX_CmdBar* pBar, [in, defaultvalue(-1)] LONG nLineIndex, [in, defaultvalue(-1)] LONG nBarIndex, [in, defaultvalue(0)] VARIANT_BOOL bForceToNewLine);
Parameters
- pBar
- [in] Pointer to IUIX_CmdBar containing the command bar that would be inserted.
- nLineIndex
- [in, defaultvalue(-1)] Value of LONG containing the index of the command line, where the command bar would be inserted.
- nBarIndex
- [in, defaultvalue(-1)] Value of LONG containing the index in the command line's command bar array where the command bar would be inserted.
- bForceToNewLine
- [in, defaultvalue(0)] Value of VARIANT_BOOL that indicates whether the new line should be created at the given line index.
Return Value
Returns S_OK if operation was successful or error code in other cases.