BreaksRemoveByIndex Method (MItemClass)
break index
number of breaks to remove
Possible values:
Removes break by its index.
This method also allows to remove number of breaks by a single call.
Syntax
Public Overridable Sub BreaksRemoveByIndex( _
   ByVal _nIndex As Integer, _
   ByVal _nExtraRemove As Integer _
) 
public virtual void BreaksRemoveByIndex( 
   int _nIndex,
   int _nExtraRemove
)
public procedure BreaksRemoveByIndex( 
    _nIndex: Integer;
    _nExtraRemove: Integer
); virtual; 
public: virtual void BreaksRemoveByIndex( 
   int _nIndex,
   int _nExtraRemove
) 

Parameters

_nIndex
break index
_nExtraRemove
number of breaks to remove
Possible values:
  • 0 is to remove single break.
  • 1, 2, 3 ... , n are to remove positive number of breaks starting from current one.
  • -1, -2, -3 ... , n are to remove negative number of breaks starting from current one
Example
'Remove 5-th break
pBreaks.BreaksRemoveByIndex(5, 0)
'Remove 5-th and 6-th breaks
pBreaks.BreaksRemoveByIndex(5, 1)
'Remove 5-th and 4-th breaks
pBreaks.BreaksRemoveByIndex(5, -1)
'Remove from 5-th to 15-th breaks
pBreaks.BreaksRemoveByIndex(5, 10)
'Remove from 5-th to 0 breaks
pBreaks.BreaksRemoveByIndex(5, -10)
//Remove 5-th break
pBreaks.BreaksRemoveByIndex(5, 0);
//Remove 5-th and 6-th breaks
pBreaks.BreaksRemoveByIndex(5, 1);
//Remove 5-th and 4-th breaks
pBreaks.BreaksRemoveByIndex(5, -1);
//Remove from 5-th to 15-th breaks
pBreaks.BreaksRemoveByIndex(5, 10);
//Remove from 5-th to 0 breaks
pBreaks.BreaksRemoveByIndex(5, -10);
//Remove 5-th break
pBreaks.BreaksRemoveByIndex(5, 0);
//Remove 5-th and 6-th breaks
pBreaks.BreaksRemoveByIndex(5, 1);
//Remove 5-th and 4-th breaks
pBreaks.BreaksRemoveByIndex(5, -1);
//Remove from 5-th to 15-th breaks
pBreaks.BreaksRemoveByIndex(5, 10);
//Remove from 5-th to 0 breaks
pBreaks.BreaksRemoveByIndex(5, -10);
See Also

Reference

MItemClass Class
MItemClass Members