| BOOL CBCGPEditCtrl::IndentText | ( | int | nStartOffset, |
| int | nEndOffset, | ||
| BOOL | bForward, | ||
| BOOL | bBlockSelectionMode, | ||
| BOOL | bSelectText, | ||
| CStringArray & | arInsDelText, | ||
| BOOL | bUndoMode | ||
| ) |
Indents a block of text forward or backward inserting or deleting spaces.
Use this function to indent a block of text forward or backward. The block is shifted according to the value specified by m_nIndentSize.
| nStartOffset | Specifies the start offset of the text to be moved. |
| nEndOffset | Specifies the end of the block of text to be moved. |
| bForward | If TRUE, the text will be moved forward. If FALSE, the text will be moved backward. |
| bBlockSelectionMode | If TRUE nStartOffset and nEndOffset define a rectangular area (block mode), otherwise all text between nStartOffset and nEndOffset is taken. |
| bSelectText | If TRUE the moved block of text is selected. |
| arInsDelText | Array of strings containing deleted or inserted text. |
| bUndoMode | Specifies regular or undo mode. |