static DesignerController()
        {
            // How to Activate
            //Stimulsoft.Base.StiLicense.Key = "6vJhGtLLLz2GNviWmUTrhSqnO...";
            //Stimulsoft.Base.StiLicense.LoadFromFile("license.key");
            //Stimulsoft.Base.StiLicense.LoadFromStream(stream);

            var ParamNames        = new string[1];
            var ParamTypes        = new Type[1];
            var ParamDescriptions = new string[1];

            ParamNames[0]        = "value";
            ParamDescriptions[0] = "Descriptions";
            ParamTypes[0]        = typeof(string);

            // How to add my function
            StiFunctions.AddFunction(
                "MyCategory",
                "MyFunc",
                "MyFunc",
                "Description",
                typeof(DesignerController),
                typeof(string),
                "Return Description",
                ParamTypes,
                ParamNames,
                ParamDescriptions);
        }
 private void AddCustomFunction()
 {
     StiFunctions.AddFunction(
         "My Category", "MySum", "description",
         typeof(MyClass),
         typeof(decimal),
         "Calculates a sum of the specified set of values.",
         new[] { typeof(object) },
         new[] { "values" },
         new[] { "A set of values" }).UseFullPath = false;
 }
        static Default()
        {
            // How to Activate
            //Stimulsoft.Base.StiLicense.Key = "6vJhGtLLLz2GNviWmUTrhSqnO...";
            //Stimulsoft.Base.StiLicense.LoadFromFile("license.key");
            //Stimulsoft.Base.StiLicense.LoadFromStream(stream);

            // How to add my function
            StiFunctions.AddFunction("MyCategory", "MySum",
                                     "description", typeof(Default),
                                     typeof(decimal), "Calculates a sum of the specified set of values.",
                                     new[] { typeof(object) },
                                     new[] { "values" },
                                     new[] { "A set of values" }).UseFullPath = false;
        }
 public static void RegisterCustomFunctions()
 {
     StiFunctions.AddFunction("Jalaali", "JalaaliDateToStr", "Converts a date to Jalaali calendar",
                              typeof(StiJalaaliDateFunctions), typeof(string), "", new[] { typeof(DateTime) }, new[] { "value" });
 }