/// <summary> /// /// </summary> /// <param name="mode"></param> /// <param name="graphics"></param> /// <param name="printing"></param> /// <returns></returns> protected override int GetFittedDisplayWidth(AutoWidthMode mode, Graphics graphics, bool printing) { // Assuming a fixed with of 20 pixels return 20; }
protected override int GetFittedWidthCore(Cell cell, AutoWidthMode mode, Graphics graphics, bool printing) { return(m_imageLeft.Width * Math.Min(1, m_imageLeftCount) + m_imageRight.Width * Math.Min(1, m_imageRightCount)); }
/// <summary> /// GetFittedWidthCore /// </summary> /// <param name="cell"></param> /// <param name="mode"></param> /// <param name="graphics"></param> /// <param name="printing"></param> /// <returns></returns> protected override int GetFittedWidthCore(Cell cell, AutoWidthMode mode, System.Drawing.Graphics graphics, bool printing) { return Math.Min(1000, base.GetFittedWidthCore(cell, mode, graphics, printing)); }
/// <summary> /// /// </summary> /// <param name="cell"></param> /// <param name="mode"></param> /// <param name="graphics"></param> /// <param name="printing"></param> /// <returns></returns> protected override int GetFittedWidthCore(Cell cell, AutoWidthMode mode, Graphics graphics, bool printing) { return 20; }
protected override int GetFittedWidthCore(Cell cell, AutoWidthMode mode, Graphics graphics, bool printing) { return m_image.Width * Math.Max(1, m_imageCount); }
protected override int GetFittedWidthCore(Cell cell, AutoWidthMode mode, Graphics graphics, bool printing) { return(m_image.Width); }
/// <summary> /// GetFittedWidthCore /// </summary> /// <param name="cell"></param> /// <param name="mode"></param> /// <param name="graphics"></param> /// <param name="printing"></param> /// <returns></returns> protected override int GetFittedWidthCore(Cell cell, AutoWidthMode mode, System.Drawing.Graphics graphics, bool printing) { return(Math.Min(1000, base.GetFittedWidthCore(cell, mode, graphics, printing))); }
protected override int GetFittedWidthCore(Cell cell, AutoWidthMode mode, System.Drawing.Graphics graphics, bool printing) { return 18; }
/// <summary> /// /// </summary> /// <param name="mode"></param> /// <param name="graphics"></param> /// <param name="printing"></param> /// <returns></returns> protected override int GetFittedDisplayWidth(AutoWidthMode mode, Graphics graphics, bool printing) { // Assuming a fixed with of 20 pixels return(20); }
protected override int GetFittedWidthCore(Cell cell, AutoWidthMode mode, System.Drawing.Graphics graphics, bool printing) { return(18); }
protected override int GetFittedWidthCore(Cell cell, AutoWidthMode mode, Graphics graphics, bool printing) { return m_imageLeft.Width * Math.Min(1, m_imageLeftCount) + m_imageRight.Width * Math.Min(1, m_imageRightCount); }