IronPythonConsoleControl.OutputLine.GetHeight C# (CSharp) Method

GetHeight() public method

Given a width, returns the height of this line, including wrapped lines.
public GetHeight ( Graphics g, int Width ) : int
g System.Drawing.Graphics
Width int
return int
        public int GetHeight(Graphics g, int Width)
        {
            if (_spans.Count == 0)
            {
                return 0;
            }
            return _spans.First().GetSize(g).Height;
        }