Intersoft ClientUI Documentation
Add(Object,String) Method
See Also  Send Feedback
Intersoft.Client.Framework.Regions Namespace > Region Class > Add Method : Add(Object,String) Method






view
The view to add.
viewName
The name of the view. This can be used to retrieve it later by calling GetView.
Adds a new view to the region.

Syntax

Visual Basic (Declaration) 
Public Overloads Function Add( _
   ByVal view As Object, _
   ByVal viewName As String _
) As IRegionManager
Visual Basic (Usage)Copy Code
Dim instance As Region
Dim view As Object
Dim viewName As String
Dim value As IRegionManager
 
value = instance.Add(view, viewName)
C# 
public IRegionManager Add( 
   object view,
   string viewName
)
Delphi 
public function Add( 
    view: TObject;
    viewName: String
): IRegionManager; 
JScript 
public function Add( 
   view : Object,
   viewName : String
) : IRegionManager;
Managed Extensions for C++ 
public: IRegionManager* Add( 
   Object* view,
   string* viewName
) 
C++/CLI 
public:
IRegionManager^ Add( 
   Object^ view,
   String^ viewName
) 

Parameters

view
The view to add.
viewName
The name of the view. This can be used to retrieve it later by calling GetView.

Return Value

The IRegionManager that is set on the view if it is a System.Windows.DependencyObject. It will be the current region manager when using this overload.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.