XUnit GetPreviousBlankWidth(ParagraphIterator beforeIter)
{
XUnit width = 0;
ParagraphIterator savedIter = this.currentLeaf;
this.currentLeaf = beforeIter.GetPreviousLeaf();
while (this.currentLeaf != null)
{
if (this.currentLeaf.Current is BookmarkField)
this.currentLeaf = this.currentLeaf.GetPreviousLeaf();
else if (IsBlank(this.currentLeaf.Current))
{
if (!IgnoreBlank())
width = CurrentWordDistance;
break;
}
else
break;
}
this.currentLeaf = savedIter;
return width;
}