WikiEditPage.InsertWebPartIntoWikiPage Method

Inserts a WebPart at a specified position of a wiki page.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Shared Sub InsertWebPartIntoWikiPage ( _
    wikiFile As SPFile, _
    webpart As WebPart, _
    position As Integer _
)
'Usage
Dim wikiFile As SPFile
Dim webpart As WebPart
Dim position As IntegerWikiEditPage.InsertWebPartIntoWikiPage(wikiFile, _
    webpart, position)
public static void InsertWebPartIntoWikiPage(
    SPFile wikiFile,
    WebPart webpart,
    int position
)

Parameters

  • position
    Type: System.Int32

    The position in the wiki of the specified page.

Remarks

The WebPart is inserted as a part of the content of the wiki in the specified page.

See Also

Reference

WikiEditPage Class

WikiEditPage Members

Microsoft.SharePoint.WebPartPages Namespace