Accessors for class IliTablePropertyManager

Methods

Description

The IliTablePropertyManager class defines objects that manage properties attached to parts of a table.
A property is identified by the property name and the part of the table to which it is attached. The part of the table can be one of the following:
In addition to specifying a given row (rowno >= 0) or all rows (rowno == -1), it is possible to specify the insertion row (rowno == -2).

Scoped Properties

In addition to the methods that manage the properties that are attached to a given part, there are member functions that access so-called scoped properties. A given part of the table has a given scoped property if it has the property of the same name or if it falls within another part which has this property.
For example, if a given row has a property called "background" and a cell in that row has no property of that name, the cell still has a scoped property called "background" that it inherits from its row.
The order in which scoped properties are searched is cell/row/column/table.

TypeNameDescriptionNotes
VariantgetProperty(Int rowno, Int colno, String propName)If the part of the table identified by rowno and colno has a property named propName, this method returns the value of this property. Otherwise, null is returned. The exact type of the return value depends on the type of the property.
IntgetPropertyCount(Int rowno, Int colno)Returns the number of properties attached to the part of the table identified by rowno and colno.
StringgetPropertyNameAt(Int rowno, Int colno, Int propIndex)Returns the property name of the part identified by rowno and colno positioned at propIndex. Returns null if propIndex is < 0 or if it is >= getPropertyCount(rowno, colno).
VariantgetScopedProperty(Int rowno, Int colno, String propName)If the part of the table identified by rowno and colno has a scoped property named propName, this method returns the value of this property. Otherwise, null is returned. The exact type of the return value depends on the type of the property.
BooleanhasProperty(Int rowno, Int colno, String propName)Returns true if the part of the table identified by rowno and colno has a property named propName.
VoidremoveProperty(Int rowno, Int colno, String propName)Removes the property named propName from the part of the table identified by rowno and colno.
VoidsetIntProperty(Int rowno, Int colno, String propName, Int propVal)Attaches to the part of the table identified by rowno and colno a property named propName with a value of propVal.
VoidsetStringPropertyVoid setStringProperty(Int rowno,
IntcolnoInt colno,
StringpropNameString propName,
StringpropValAttaches to the part of the table identified by rowno and colno a property named propName with a value of propVal.