/// <summary> /// output an allocatedItem /// </summary> private void Output(RegionTag aTag, anAllocatedItem item, PointF basePt) { item.allocatedTag.needRedraw = false; //TODO: Clean up code if (item.allocatedTag is TextTag) { PointF itemBasePoint = new PointF(item.actualRect().X + basePt.X, item.actualRect().Y + basePt.Y); RectangleF itemRect = new RectangleF(itemBasePoint, new SizeF(item.allocatedRect.Width, item.allocatedRect.Height)); outputTextTag(((TextTag)(item.allocatedTag)), itemRect, item.extraInfo); } else if (item.allocatedTag is ElementTag) { PointF itemBasePoint = new PointF(item.actualRect().X + basePt.X, item.actualRect().Y + basePt.Y); RectangleF itemRect = new RectangleF(itemBasePoint, new SizeF(item.allocatedRect.Width, item.allocatedRect.Height)); outputElementTag(((ElementTag)(item.allocatedTag)), itemRect); } else if (item.allocatedTag is RegionTag) { RectangleF rect = ((RegionTag)(item.allocatedTag)).state.DrawableRect(item.allocatedRect, true); rect.Offset(basePt); { output((RegionTag)item.allocatedTag, rect); } } }
internal anAllocatedItem(HtmlTag aTag, hAlignType anAlign, float aLeft, float aTop, float aWidth, float aHeight, Int32 aCurrentLine, Int32 anExtraInfo, anAllocatedItem aLink) { allocatedTag = aTag; align = anAlign; allocatedRect = new RectangleF(aLeft, aTop, aWidth, aHeight); currentLine = aCurrentLine; extraInfo = anExtraInfo; link = aLink; }
internal anAllocatedItem link; // Link to first item internal anAllocatedItem(HtmlTag aTag, hAlignType anAlign, RectangleF aRect, Int32 aCurrentLine, Int32 anExtraInfo, anAllocatedItem aLink) { allocatedTag = aTag; align = anAlign; allocatedRect = aRect; currentLine = aCurrentLine; extraInfo = anExtraInfo; link = aLink; }
public bool Contains(anAllocatedItem value) { return(List.Contains(value)); }
public void Remove(anAllocatedItem value) { List.Remove(value); }
internal void Insert(Int32 index, anAllocatedItem value) { List.Insert(index, value); }
public Int32 Add(anAllocatedItem value) { List.Add(value); return(List.Count - 1); }
private void setItem(Int32 aIndex, anAllocatedItem value) { List[aIndex] = value; }