|
•GetEnumIndex(name: string): int |
|
|
Name of the enum attribute
|
|
|
Current enum index of found enum attribute
|
Finds an enum attribute by name and returns its Enum index.
[Example]
index = obj.GetEnumIndex("EEnumAttribute")
•SetEnumIndex(name: string, iVal: int) |
|
|
Name of the enum attribute
|
|
|
enum index to be set
|
Finds an enum attribute by name and sets its Enum index.
[Example]
obj.SetEnumIndex("EEnumAttribute", 1)
•GetInteger(name: string): int |
|
|
Name of the int attribute
|
|
|
Value of the found attribute
|
Finds an int attribute by name and returns its value.
[Example]
iVal = obj.GetInteger("EIntAttribute")
•SetInteger(name: string, iVal: int) |
|
|
Name of the int attribute
|
|
|
Value to set
|
Finds an int attribute by name and sets its value.
[Example]
obj.SetInteger("EIntAttribute", 1)
•GetDouble(name: string): float |
|
|
Name of the double attribute
|
|
|
Value of the found attribute
|
Finds an int attribute by name and returns its value.
[Example]
dVal = obj.GetDouble("EDoubleAttribute")
•SetDouble(name: string, iVal: float) |
|
|
Name of the double attribute
|
|
|
Value to set
|
Finds an int attribute by name and sets its value.
[Example]
obj.SetDouble("EDoubleAttribute", 1.1)
•GetString(name: string): string |
|
|
Name of the string attribute
|
|
|
Value of the found attribute
|
Finds an string attribute by name and returns its value.
[Example]
sVal = obj.GetString("EStringAttribute")
•SetString(name: string, iVal: string) |
|
|
Name of the string attribute
|
|
|
Value to set
|
Finds an int attribute by name and sets its value.
[Example]
obj.SetString("EStringAttribute", "element2")
•GetBool(name: string): bool |
|
|
Name of the boolean attribute
|
|
|
Value of the found attribute
|
Finds an boolean attribute by name and returns its value.
[Example]
bVal = obj.GetBool("EBooleanAttribute")
•SetBool(name: string, iVal: bool) |
|
|
Name of the boolean attribute
|
|
|
Value to set
|
Finds an boolean attribute by name and sets its value.
[Example]
obj.SetBool("IsLocked", True)
|
|
the insert position of the event
|
[Example]
insPos = spdevt.GetOlpEventInsertPosition()
if insPos == TPINSERTPOS_INSERTBEFORE:
|