> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Element Property of the PopupMenu Object

> Element property of the PopupMenu Object in ABBYY FineReader Engine Visual Components on Windows — This property returns the MenuItemEnum constant corresponding to the element of the custom part of the context menu with...

This property returns the [MenuItemEnum](/fine-reader/engine/visual-components-reference/enumerations/menuitemenum) constant corresponding to the element of the custom part of the context menu with the specified index.

## Syntax

### C++

```cpp theme={null}
HRESULT Element(
  int           Index,
  MenuItemEnum* Result
);
```

### C\#

```csharp theme={null}
SpellReplacement get_Element( int Index );
```

### Visual Basic .NET

```vb theme={null}
ReadOnly Property Element(Index As Integer) As MenuItemEnum
```

## Parameters

Index

\[in] Specifies the index of the element in the custom part of the context menu. Must be in a range from 0 to the value of the [IPopupMenu::Count](/fine-reader/engine/visual-components-reference/supplementary-objects/popupmenu#count) property minus 1.

Result

\[out, retval] Receives the [MenuItemEnum](/fine-reader/engine/visual-components-reference/enumerations/menuitemenum) constant, corresponding to the element with the specified index.

## Return values

This property has no specific return values. It returns the [standard return values of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## See also

[PopupMenu](/fine-reader/engine/visual-components-reference/supplementary-objects/popupmenu)
