/// <summary>
   /// Returns the minimum required size of the current cell, calculating using the
   /// current DisplayString, Image and Borders information.
   /// </summary>
   /// <param name="p_Graphics">GDI+ drawing surface</param>
   /// <param name="p_Cell">The cell.</param>
   /// <param name="p_CellPosition">The cell position.</param>
   /// <returns></returns>
   public virtual SizeF GetRequiredSize(Graphics p_Graphics,
 Cells.ICellVirtual p_Cell,
 Position p_CellPosition)
   {
       return CalculateRequiredSize(p_Graphics, p_Cell.GetDisplayText(p_CellPosition), stringFormat, GetCellFont(), null, ContentAlignment.MiddleCenter, false, false, Border);
   }
Esempio n. 2
0
   /// <summary>
   /// Returns the minimum required size of the current cell, calculating using the
   /// current DisplayString, Image and Borders information.
   /// </summary>
   /// <param name="p_Graphics">GDI+ drawing surface</param>
   /// <param name="p_Cell">The cell.</param>
   /// <param name="p_CellPosition">The cell position.</param>
   /// <returns></returns>
   public override SizeF GetRequiredSize(Graphics p_Graphics,
 Cells.ICellVirtual p_Cell,
 Position p_CellPosition)
   {
       return VisualModelBase.CalculateRequiredSize(
       p_Graphics,
       p_Cell.GetDisplayText(p_CellPosition),
       StringFormat,
       GetCellFont(),
       this.cellImage,
       this.imageAlignment,
       this.doAlignTextToImage,
       this.doImageStretch,
       Border);
   }