Share via


_OlkTextBox.SelLength Property

Returns or sets an Integer (int in C#) value that specifies the number of characters in the current selection. Read/write.

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

Syntax

'Declaration
<DispIdAttribute()> _
Property SelLength As Integer
    Get
    Set
'Usage
Dim instance As _OlkTextBox
Dim value As Integer

value = instance.SelLength

instance.SelLength = value
[DispIdAttribute()]
int SelLength { get; set; }

Property Value

Type: System.Int32

Remarks

The current selection is specified by SelText, which is a portion of the control's Value. The maximum number of characters that can be supported for Value is MaxLength.

The default value is zero, which means no text is currently selected.

The SelLength property is always valid, even when the control does not have focus.

Setting SelLength to a value less than zero causes an error. Attempting to set the value greater than MaxLength results in setting SelLength to MaxLength.

See Also

Reference

_OlkTextBox Interface

_OlkTextBox Members

Microsoft.Office.Interop.Outlook Namespace