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

AttributeStartAngle

Sets the start angle of an arc or pie-slice, or retrieves the start angle.

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

AttributeStartAngle(Angle)

Angle:

A value between 0 and 360 representing the start angle (in degrees).

If retrieving the start angle, a value between 0 and 360. If applying a start angle, 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

AttributeEndAngle

Example

' Sets the start angle of an arc
GraphicsBuilder.AttributeStartAngle = 45

' Retrieves the start angle for an arc
MyVariable = GraphicsBuilder.AttributeStartAngle

This function is implemented in the C++ environment as two separate functions: put_AttributeStartAngle applies a start angle setting, and get_AttributeStartAngle retrieves the current start angle setting.

Published June 2018