ComponentBase.Core.cs 972 B

12345678910111213141516171819202122232425
  1. using FastReport.Utils;
  2. namespace FastReport
  3. {
  4. partial class ComponentBase
  5. {
  6. /// <summary>
  7. /// Draws the object.
  8. /// </summary>
  9. /// <param name="e">Paint event args.</param>
  10. /// <remarks>
  11. /// <para>This method is widely used in the FastReport. It is called each time when the object needs to draw
  12. /// or print itself.</para>
  13. /// <para>In order to draw the object correctly, you should multiply the object's bounds by the <b>scale</b>
  14. /// parameter.</para>
  15. /// <para><b>cache</b> parameter is used to optimize the drawing speed. It holds all items such as
  16. /// pens, fonts, brushes, string formats that was used before. If the item with requested parameters
  17. /// exists in the cache, it will be returned (instead of create new item and then dispose it).</para>
  18. /// </remarks>
  19. public virtual void Draw(FRPaintEventArgs e)
  20. {
  21. }
  22. }
  23. }