Пример #1
0
        /// <summary>
        /// Performs layout calculations for this cell.
        /// </summary>
        /// <param name="renderer">The text renderer used to lay out and render the table's text.</param>
        /// <param name="width">The cell's width in pixels.</param>
        /// <param name="height">The cell's height in pixels.</param>
        internal void PerformLayout(TextRenderer renderer, Int32 width, Int32 height)
        {
            var settings = new TextLayoutSettings(row.Table.Font, width, null, textFlags);

            renderer.CalculateLayout(FormattedText, layout, settings);
        }