Click or drag to resize

Input Attribute

A user code (which can be an Indicator or a BarType etc) can have one or more Properties (as defined by the user). ArthaChitra, uses these user defined properties internally for various tasks, from comparing two objects or simply to append the display name. Whether the properties will be included or excluded from such evaluation process depends if the coder assigns the InputAttribute to that property.

The below example demonstrates the usage of the Input Attribute

private Pen pen;
[XmlIgnore]
public Pen Pen
{
    get { return pen; }
    set 
    {
        pen = value; 
        if (pen.CanFreeze)
        {
            pen.Freeze();
        }
    }
}

private double period;
[Input]
public double Period
{
    get { return period; }
    set 
    {
        period = value;
        NotifyPropertyChanged("Period");
    }
}

In the above code, the Property 'Period' will be taken into consideration for various internal assessments as the Input Attribute has been assigned to it, while the 'Pen' property will be ignored. Please refer to the CustomPlot indicator that comes natively with ArthaChitra for further reference.

See Also