method Element.Edit (Part as EditEnum, [Options as Variant])
Edits the element.

TypeDescription
Part as EditEnum An EditEnum expression that specifies the caption to be edited such as Caption or ExtraCaption.
Options as Variant A String expression that specifies the options to show the inline editing. The Options are separated by comma character (,).
ReturnDescription
VariantA Long expression that specifies whether the user presses the ENTER while inline editing. The Valid values are 0 if user presses the ESC key during inline editing, -1 if the user presses the ENTER key, or 1 if the user closes the form.
Use the Edit method to inline edit the element's caption or extra-caption. The Caption property indicates the element's HTML Caption. The ExtraCaption property indicates the element's HTML Extra-Caption. The CaptionSingleLine property specifies whether the element's caption displays single or multiple lines. The ExtraCaptionSingleLine property specifies whether the element's extra-caption displays single or multiple lines. The control fires the LayoutStartChanging(exEditObject) event when the Edit method starts, and the LayoutEndChanging(exEditObject) event when the Edit method ends.

By default, the edit's background is not changed so the inline editing is transparent. Use the Background(exEditBackColor) to specify the inline editing's background color. Use the Background(exEditForeColor) to specify the inline editing's foreground color. Use the Background(exEditSelBackColor) to specify the inline editing's selection background color. Use the Background(exEditSelForeColor) to specify the inline editing's selection foreground color. 

The Options parameter can include one or more of the following options: