SPWebPartManager.BeginWebPartEditing Method
Starts the process of editing a selected Web Part in the page.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Overrides Sub BeginWebPartEditing ( _
webPart As WebPart _
)
'Usage
Dim instance As SPWebPartManager
Dim webPart As WebPart
instance.BeginWebPartEditing(webPart)
public override void BeginWebPartEditing(
WebPart webPart
)
Parameters
webPart
Type: System.Web.UI.WebControls.WebParts.WebPartThe control to be edited.
Remarks
This override tests to ensure that webPart is in a state where it can be edited. If webPart can be edited, it is then set as the selected control (see the SeletedWebPart() property), and the editing process can continue.