Sitefinity CMS

Telerik.Framework Send comments on this topic.
Controls Property
See Also  Example
Telerik Namespace > WebModule Class : Controls Property


Gets information for the controls which would be showed in the toolbox when editing a page.   

 

Namespace: Telerik
Assembly: Telerik.Framework (in Telerik.Framework.dll)

Syntax

Visual Basic (Declaration) 
Public MustOverride ReadOnly Property Controls As IList(Of IToolboxItem)
Visual Basic (Usage)Copy Code
Dim instance As WebModule
Dim value As IList(Of IToolboxItem)
 
value = instance.Controls
C# 
public abstract IList<IToolboxItem> Controls {get;}

Return Value

IList generic collection for the IToolBoxItem objects representing the public controls.

Example

The following example provides sample implementation for the Controls property. It returns new List generic collection with two IToolBoxItems in it which represents two public controls.
C#Copy Code
/// <summary>
/// Gets ToolboxItemCollection with all ToolboxItem objects which register the corresponding control for use in the public part of the CMS system.
/// </summary>
public override IList<IToolboxItem> Controls
{
   get
   {
       
return new List<IToolboxItem>(new ToolboxItem[] { new JobListToolboxItem(), new JobListSummaryToolboxItem() });
   }
}
    

Remarks

Each module public control should be represented as a IToolboxItem object which contains information for the type of the control it reffers to as well as a title and description information. For more information take a look at the IToolBoxItem interface.

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

See Also