Ritorna/Imposta una proprietà dell’oggetto

Ritorna/Imposta una proprietà indicizzata dell’oggetto (per esempio soglie colore).



Syntax


TrendFuncRc GetProperty(string szObjID, TrendPropertyConst iPropertyCode, out object value)


TrendFuncRc SetProperty(string szObjID, TrendPropertyConst iPropertyCode, object value)



TrendFuncRc GetProperty(string szObjID, TrendPropertyConst iPropertyCode, int iPropertyIndex, out object value)


TrendFuncRc SetProperty(string szObjID, TrendPropertyConst iPropertyCode, int iPropertyIndex, object value)




Parameters


szObjID


ID dell’oggetto.

iPropertyCode


Codice della proprietà da leggere/scrivere.



Per ulteriori informazioni fare riferimento al paragrafo successivo

iPropertyIndex


Indice della proprietà da leggere/scrivere.



Per esempio, per il colore dinamico:



0 = prima soglia colore dinamico



1 = seconda soglia colore dinamico



….

value


Valore della proprietà



Return values


TrendFunRc =



Ok


Nessun errore

GenericErr


Errore generico

PageNotFound


La pagina corrente non è stata trovata

ObjectNotFound


L’oggetto non è stato trovato

PropertyNotFound


Il codice della proprietà non esiste o non è gestito

ReadOnlyProperty


La proprietà è in sola lettura

InvalidPropertyIndex


L’indice della proprietà non è valido

ExpectedObjectTypeErr


L’oggetto specificato non è un trend




Note



Proprietà del trend attualmente implementate


TrendPropertyConst


Status        I valori ammessi sono esposti dall’enumerazione TrendStatusConstants

Type        I valori ammessi sono esposti dall’enumerazione TrendTypeConstants


SelectedPen        

Pen_Group

CurPen_Group


Pen_Visible

Pen_LineColor

Pen_Description

CurPen_Description

Pen_Item

CurPen_Item

Pen_MinValue

Pen_MaxValue

TimeSpanSecShowed

EndTimeUTC


Data Type


TrendFunRc