---
title: parseScrollElement
framework: hiddriverkit
role: symbol
role_heading: Instance Method
path: hiddriverkit/iouserhideventdriver/parsescrollelement
---

# parseScrollElement

Parses an element to see if it supports scroll usages.

## Declaration

```occ
virtual bool parseScrollElement(IOHIDElement *element);
```

## Parameters

- `element`: An IOHIDElement object to parse.

## Return Value

Return Value true on success, otherwise false.

## Discussion

Discussion This method checks the element to determine if it contains scrolling data suitable for dispatching in an event. If it does, the method stores a reference to the element for later use. When the driver object receives subsequent reports from the device, it uses the information in the stored scrolling elements to dispatch scrolling-specific events.

## See Also

### Parsing the Element Hierarchy

- [parseElements](hiddriverkit/iouserhideventdriver/parseelements.md)
- [parsePointerElement](hiddriverkit/iouserhideventdriver/parsepointerelement.md)
- [parseDigitizerElement](hiddriverkit/iouserhideventdriver/parsedigitizerelement.md)
- [parseKeyboardElement](hiddriverkit/iouserhideventdriver/parsekeyboardelement.md)
- [parseLEDElement](hiddriverkit/iouserhideventdriver/parseledelement.md)
