GetPropertyRc
Ritorna/Imposta una proprietà dell’oggetto.
Ritorna/Imposta una proprietà indicizzata dell’oggetto (per esempio soglie colore).
Ritorna/Imposta un elemento di una proprietà indicizzata dell’oggetto (per esempio lista azioni).
Syntax
|
ObjectPropertyRc GetProperty(string szObjID, ObjectPropertyConst iPropertyCode, out object value) |
|
ObjectPropertyRc SetProperty(string szObjID, ObjectPropertyConst iPropertyCode, object value) |
|
ObjectPropertyRc GetProperty(string szObjID, ObjectPropertyConst iPropertyCode, int iPropertyIndex, out object value) |
|
ObjectPropertyRc SetProperty(string szObjID, ObjectPropertyConst iPropertyCode, int iPropertyIndex, object value) |
|
ObjectPropertyRc GetProperty(string szObjID, ObjectPropertyConst iPropertyCode, int iPropertyIndex, int iPropertyParamIndex, out object value) |
|
ObjectPropertyRc SetProperty(string szObjID, ObjectPropertyConst iPropertyCode, int iPropertyIndex, int iPropertyParamIndex, 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 |
|
|
|
…. |
|
iPropertyParamIndex |
|
Indice dell’elemento della proprietà da leggere/scrivere. |
|
|
|
Per esempio, per la lista azioni: |
|
|
|
0 = Indica il primo parametro dell’azione con indice iPropertyIndex contenuta nella lista azioni |
|
|
|
1 = Indica il secondo parametro dell’azione con indice iPropertyIndex contenuta nella lista azioni |
|
|
|
…. |
|
value |
|
Valore della proprietà |
Return values
|
ObjectPropertyRc |
|
|
|
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 |
|
InvalidPropertyParamindex |
|
L'indice del parametro della proprietà non è valido |
Note
Data Type
ObjectPropertyRc