共用方式為


SPViewFieldCollection.MoveFieldTo method

將指定的欄位移至檢視的欄位集合中指定的位置。

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Sub MoveFieldTo ( _
    field As String, _
    index As Integer _
)
'用途
Dim instance As SPViewFieldCollection
Dim field As String
Dim index As Integer

instance.MoveFieldTo(field, index)
public void MoveFieldTo(
    string field,
    int index
)

參數

  • index
    Type: System.Int32

    欄位的檢視欄位集合中新位置。第一個位置為 0。

Exceptions

Exception Condition
ArgumentNullException

傳遞至欄位參數的引數是a null reference (Nothing in Visual Basic)。

SPException

欄位不存在於集合中。

請參閱

參照

SPViewFieldCollection class

SPViewFieldCollection members

Microsoft.SharePoint namespace