public BitArray ToBitArray()
{
int arrayLength = 0;
if (this.runArray.Count > 0)
{
arrayLength = this.runArray.Last().EndIndex + 1;
}
BitArray rtnVal = new BitArray(arrayLength, false);
foreach (Run r in this.runArray)
{
for (int i = r.StartIndex; i < r.EndIndex + 1; i++)
{
rtnVal[i] = true;
}
}
return rtnVal;
}