次の方法で共有


_OlkListBox.TopIndex Property

Returns or sets an Integer (int in C#) value that represents the index of the item at the top of the displayed portion of the list. Read/write.

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

Syntax

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

value = instance.TopIndex

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

Property Value

Type: System.Int32

Remarks

As the list scrolls, the item at the top of the list will change, and the value of this property will change to reflect the item currently displayed at the top of the list.

The index value is zero-based. The default value is -1, indicating that no special ordering should be applied.

See Also

Reference

_OlkListBox Interface

_OlkListBox Members

Microsoft.Office.Interop.Outlook Namespace