XUnit ProbeAfterRightAlignedTab(XUnit tabStopPosition, out bool notFitting)
{
//--- Save ---------------------------------
ParagraphIterator iter;
int blankCount;
XUnit xPosition;
XUnit lineWidth;
XUnit wordsWidth;
XUnit blankWidth;
SaveBeforeProbing(out iter, out blankCount, out wordsWidth, out xPosition, out lineWidth, out blankWidth);
//------------------------------------------
XUnit xPositionAfterTab = xPosition;
notFitting = ProbeAfterTab();
if (!notFitting && xPosition + this.currentLineWidth <= this.formattingArea.X + tabStopPosition)
xPositionAfterTab = this.formattingArea.X + tabStopPosition - this.currentLineWidth;
//--- Restore ------------------------------
RestoreAfterProbing(iter, blankCount, wordsWidth, xPosition, lineWidth, blankWidth);
//------------------------------------------
return xPositionAfterTab;
}