Contents

AXUIElementGetAttributeValueCount(_:_:_:)

Returns the count of the array of an accessibility object's attribute value.

Declaration

func AXUIElementGetAttributeValueCount(_ element: AXUIElement, _ attribute: CFString, _ count: UnsafeMutablePointer<CFIndex>) -> AXError

Parameters

  • element:

    The AXUIElementRef representing the accessibility object.

  • attribute:

    The attribute name.

  • count:

    On return, the size of the array that is the attribute's value.

Return Value

If unsuccessful, AXUIElementGetAttributeValueCount may return one of the following error codes, among others:

kAXErrorIllegalArgument

The attribute's value is not an array or one of the other arguments is an illegal value.

kAXErrorAttributeUnsupported

The specified AXUIElementRef does not support the specified attribute.

kAXErrorInvalidUIElement

The AXUIElementRef is invalid.

kAXErrorCannotComplete

The function cannot complete because messaging has failed in some way.

kAXErrorNotImplemented

The process does not fully support the accessibility API.

See Also

Miscellaneous