public TextBlock(string text, BitSet containedTextElements, int numWords, int numWordsInAnchorText
, int numWordsInWrappedLines, int numWrappedLines, int offsetBlocks)
{
this.text = text;
this.containedTextElements = containedTextElements;
this.numWords = numWords;
this.numWordsInAnchorText = numWordsInAnchorText;
this.numWordsInWrappedLines = numWordsInWrappedLines;
this.numWrappedLines = numWrappedLines;
this.offsetBlocksStart = offsetBlocks;
this.offsetBlocksEnd = offsetBlocks;
InitDensities();
}