using System.Collections; using System.Drawing; using System.Text; namespace DevComponents.Charts.TextMarkup { internal class MarkupLayoutManager : BlockLayoutManager { private MarkupDrawContext m_MarkupDrawContext = null; public MarkupDrawContext MarkupDrawContext { get { return m_MarkupDrawContext; } set { m_MarkupDrawContext = value; } } public override void Layout(IBlock block, Size availableSize) { if (block is MarkupElement) { MarkupElement m = block as MarkupElement; if(!m.IsSizeValid) m.Measure(availableSize, m_MarkupDrawContext); } } public override Rectangle FinalizeLayout(Rectangle containerBounds, Rectangle blocksBounds, ArrayList lines) { return (blocksBounds); } } }