# Editor.AutoComplete

- Kind: class
- Namespace: `Editor`
- Assembly: `Sandbox.Tools`
- Inherits: [Editor.Menu](/api/Editor.Menu)

## Constructors

- [`AutoComplete`](/api/Editor.AutoComplete/.ctor)

## Fields

- [`OnBuildOptions`](/api/Editor.AutoComplete/OnBuildOptions): The text has changed - fill in the options
- [`OnOptionSelected`](/api/Editor.AutoComplete/OnOptionSelected): You should hook this up to change the text on your control

## Properties

- [`HasAutocompleteOptions`](/api/Editor.AutoComplete/HasAutocompleteOptions)
- [`MinimumLength`](/api/Editor.AutoComplete/MinimumLength)
- [`OpenOffset`](/api/Editor.AutoComplete/OpenOffset)

## Methods

- [`AddOption`](/api/Editor.AutoComplete/AddOption): Add an option for this autocomplete
- [`OnAutoComplete`](/api/Editor.AutoComplete/OnAutoComplete)
- [`OnGlobalMousePressed`](/api/Editor.AutoComplete/OnGlobalMousePressed): Called when the mouse is pressed. Will hide this window if we clicked on anything except ourselves or our parent control.
- [`OnParentBlur`](/api/Editor.AutoComplete/OnParentBlur): Call this when the widget that spawns this blurs, so we can hide ourself
- [`OnParentKeyPress`](/api/Editor.AutoComplete/OnParentKeyPress): You should call this from the parent when a key is pressed. Will forward the appropriate keys to us and accept the event.
- [`OpenAbove`](/api/Editor.AutoComplete/OpenAbove): Open above this position
