SECEditLineCol::Adjust
BOOLSECEditLineCol::Adjust(const SECEditLineColPair&lcp)
Adjusts the value of this Line and Column based on the effect of the Adding or Deleting the SECEditLineColPair paremeter.
Defined in: SECEditLineCol.cpp
Return Value
Returns TRUE if the values of this object were modified.
Parameters
lcp
The SECEditLineColPair object to which we are adjusting.
Comments
This method adjusts the value of this object based on the effect of the lcp paremeter.For example, if our line/column is line 12, column 5 and we are adding a block of text (an SECEditLineColPair) that goes from line 3, col 0 to line 5, col 22 we would need to increase our line value by 2 (because 2 new lines were added previous to our line), but the column value would not need to be adjusted. If the insert was on our line and started before our column, then we would need to adjust the column as well as the line (if the insert was multiline). If the insert was after our location, then we would not need to be adjusted. For deletes, the effect is similar.
See Also