< All Topics

Reports – create custom class

This example shows how to create a custom statistics class that shows up in the generated report.

To add public values to the Statistics form window in Experior set the Observe value to true.

public class TestStatistics : Core.Reports.Statistics.Statistic
{
    public override string Title
    {
        get { return "Test Statistics"; }
    }

    private double example;

    [DisplayName("Example field")]
    public double Example
    {
        get { return example; }
        set
        {
            if (value != example)
            {
                example = value;
                NotifyPropertyChanged("Example field");
            }
        }
    }
}
Was this article helpful?
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Previous Open Office XML
Next Rigid Sensor Part