Extensibility > Graphics Builder Automation Interface > Object Drawing and Property Functions > AttributeSetFill

AttributeSetFill

Displays the object as filled, or retrieves the current fill value.

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

AttributeSetFill(SetFill)

SetFill:

TRUE if the object drawn filled.

Return Value

If retrieving the current fill setting, TRUE if the object is displayed as filled. If applying a fill setting, 0 (zero) if successful. In both cases, an error is returned if unsuccessful. 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 and report a return value of E_HANDLE.

Note: For details on handling return and error values, see Error Handling.

Related Functions

AttributeFillColour

Example

' Displays an object as filled
GraphicsBuilder.AttributeSetFill = TRUE

' Retrieves the current fill setting
MyVariable = GraphicsBuilder.AttributeSetFill

Note: This function is implemented in the C++ environment as two separate functions: put_AttributeSetFill applies a fill setting, and get_AttributeSetFill retrieves the current fill setting.

Published June 2018