private void BuildLayout() { if (m_Words == null) { return; } using (Graphics graphics = this.CreateGraphics()) { IGraphicEngine graphicEngine = new GdiGraphicEngine(graphics, this.Font.FontFamily, FontStyle.Regular, m_Palette, MinFontSize, MaxFontSize, m_MinWordWeight, m_MaxWordWeight); m_Layout = LayoutFactory.CrateLayout(m_LayoutType, this.Size); m_Layout.Arrange(m_Words, graphicEngine); } }
public void BuildLayout() { m_Layout = LayoutFactory.CrateLayout(m_LayoutType, this.Size); ItemsCount = 0; if (m_Words == null || m_Words.Count == 0) { return; } CaclulateMinMaxWordWeights(); using (Graphics graphics = this.CreateGraphics()) { IGraphicEngine graphicEngine = new GdiGraphicEngine(graphics, this.Font.FontFamily, FontStyle.Regular, m_Palette, MinFontSize, MaxFontSize, m_MinWordWeight, m_MaxWordWeight); ItemsCount = m_Layout.Arrange(this.m_Words, graphicEngine); } }