PreparedPage.BaseExt.cs 452 B

12345678910111213141516
  1. using System.ComponentModel;
  2. namespace FastReport.Preview
  3. {
  4. partial class PreparedPage : Component // !
  5. {
  6. private void ProcessText(TextObject txt)
  7. {
  8. #if Demo
  9. string text = txt.Text;
  10. if (text != null && text.Length >= 4 && txt.GetHashCode() % 17 == 0)
  11. txt.Text = "Demo" + (text.Length < 12 ? "" : " version" + (text.Length < 20 ? "" : " " + text.Substring(13)));
  12. #endif
  13. }
  14. }
  15. }