IRegion.Add Method (Object, String)
Adds a new view to the region.
Namespace: Microsoft.Practices.Composite.Regions
Assembly: Microsoft.Practices.Composite (in Microsoft.Practices.Composite.dll)
Syntax
'Declaration
Function Add ( _
view As Object, _
viewName As String _
) As IRegionManager
IRegionManager Add(
Object view,
string viewName
)
IRegionManager^ Add(
Object^ view,
String^ viewName
)
function add(view, viewName);
Parameters
- view
Type: System.Object
The view to add.
- viewName
Type: System.String
The name of the view. This can be used to retrieve it later by calling GetView(String).
Return Value
The IRegionManager that is set on the view if it is a DependencyObject. It will be the current region manager when using this overload.