Retrieves the class of the active object as a string. This is a read only function.
This function applies to the selected object, which is typically the last placed object. By using the PageSelectFirstObject()
and PageSelectNextObject()
functions, you can access your objects and change or read their properties.
Syntax
AttributeClass(Class)
Class:
A string depicting the class of the object. The class options include: "Draw", "Line", "Square", "Circle", "Polyline", "Pipe", "Text", "Button", "Set", "Trend", "Advanced Animation", "Bitmap", "Group", "ActiveX", "Symbol" and "Genie".
Return Value
A string depicting the class of the object. If values are out of range on writing to the attribute, the function will exit and report the error E_INVALIDARG. If there is no active object, they will exit with a return value of E_HANDLE.
Note: For details on handling return and error values, see Error Handling.
Example
' Retrieves the Class for the current object
MyVariable = GraphicsBuilder.AttributeClass
Published June 2018