Adds a New Module to a Pane

Namespace: DotNetNuke.UI.ControlPanels
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
protected void AddNewModule(
	string title,
	int desktopModuleId,
	string paneName,
	int position,
	ControlPanelBase..::..ViewPermissionType permissionType,
	string align
)
Visual Basic
Protected Sub AddNewModule ( 
	title As String,
	desktopModuleId As Integer,
	paneName As String,
	position As Integer,
	permissionType As ControlPanelBase..::..ViewPermissionType,
	align As String
)

Parameters

title
Type: System..::..String
The Title for the resulting module
desktopModuleId
Type: System..::..Int32
The Id of the DesktopModule
paneName
Type: System..::..String
The pane to add the module to
position
Type: System..::..Int32
The relative position within the pane for the module
permissionType
Type: DotNetNuke.UI.ControlPanels..::..ControlPanelBase..::..ViewPermissionType
The View Permission Type for the Module
align
Type: System..::..String
The alignment for the Modue

See Also