Share via


_OlkTextBox.EnterKeyBehavior Property

Returns or sets a Boolean (bool in C#) that defines the way the ENTER key behaves in the control. Read/write.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
Property EnterKeyBehavior As Boolean
    Get
    Set
'Usage
Dim instance As _OlkTextBox
Dim value As Boolean

value = instance.EnterKeyBehavior

instance.EnterKeyBehavior = value
bool EnterKeyBehavior { get; set; }

Property Value

Type: System.Boolean

Remarks

When this property is True, pressing ENTER creates a new line. When this property is False, pressing ENTER moves the focus to the next control in tab order. The default value for this property is False.

See Also

Reference

_OlkTextBox Interface

_OlkTextBox Members

Microsoft.Office.Interop.Outlook Namespace