Share via


_ViewFields.Insert Method

Creates a new ViewField object and inserts it at the specified index within the ViewFields collection.

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

Syntax

'Declaration
<DispIdAttribute()> _
Function Insert ( _
    PropertyName As String, _
    Index As Object _
) As ViewField
'Usage
Dim instance As _ViewFields
Dim PropertyName As String
Dim Index As Object
Dim returnValue As ViewField

returnValue = instance.Insert(PropertyName, _
    Index)
[DispIdAttribute()]
ViewField Insert(
    string PropertyName,
    Object Index
)

Parameters

  • PropertyName
    Type: System.String

    The name of the property to which the new object is associated.

  • Index
    Type: System.Object

    Either a one-based index number at which to insert the new object, or a value used to match the ViewXMLSchemaName property value of an object in the collection where the new object is to be inserted.

Return Value

Type: Microsoft.Office.Interop.Outlook.ViewField
A ViewField object that represents the new view field.

See Also

Reference

_ViewFields Interface

_ViewFields Members

Microsoft.Office.Interop.Outlook Namespace