GetType Method (Python)
Returns the type associated with this output item.
Syntax
SpssOutputItem.GetType()
Type | Type Code |
---|---|
SpssClient.OutputItemType.UNKNOWN | 0 |
SpssClient.OutputItemType.CHART | 1 |
SpssClient.OutputItemType.HEAD | 2 |
SpssClient.OutputItemType.LOG | 3 |
SpssClient.OutputItemType.NOTE | 4 |
SpssClient.OutputItemType.PIVOT | 5 |
SpssClient.OutputItemType.ROOT | 6 |
SpssClient.OutputItemType.TEXT | 7 |
SpssClient.OutputItemType.WARNING | 8 |
SpssClient.OutputItemType.TITLE | 9 |
SpssClient.OutputItemType.PAGETITLE | 11 |
SpssClient.OutputItemType.TREEMODEL | 13 |
SpssClient.OutputItemType.GENERIC | 14 |
SpssClient.OutputItemType.MODEL | 15 |
SpssClient.OutputItemType.LIGHTNOTE | 18 |
SpssClient.OutputItemType.LIGHTPIVOT | 19 |
SpssClient.OutputItemType.LIGHTWARNING | 20 |
When testing for a particular output type with
the return value from GetType
, you can use the integer type code or the textual specification
of the type. For an example of using the GetType
method, see SpssPivotTable Class (Python).
Notes
- Standard charts, graphboard charts, and R graphics
all have the type
SpssClient.OutputItemType.CHART
. To distinguish between these chart types, use the SPSSSubtype method on the associatedSpssChartItem
object. - Objects of type SpssClient.OutputItemType.ROOT (the root object in an output document) or SpssClient.OutputItemType.HEAD are
SpssHeaderItem
objects. - Objects of type SpssClient.OutputItemType.TREEMODEL are
SpssChartItem
objects. - The object types SpssClient.OutputItemType.LIGHTNOTE, SpssClient.OutputItemType.LIGHTPIVOT, and SpssClient.OutputItemType.LIGHTWARNING are obsolete for release 20 and higher. Lightweight Notes items, lightweight Pivot Table items, and lightweight Warnings items created in release 19 will have the output types SpssClient.OutputItemType.NOTE, SpssClient.OutputItemType.PIVOT and SpssClient.OutputItemType.WARNING respectively when accessed in release 20 or higher.