# Adding Elements to a Template

## Content



Template elements can be created at design time or programmatically. At design time they can be created using the **C1TileControl.Templates Collection Editor**. Template elements can also be created programmatically through the [TemplateCollection](/componentone/docs/win/online-tilecontrol/) class. The template can be inserted into the TemplateCollection at the specified index using the [InsertItem](/componentone/docs/win/online-tilecontrol/) method.

### Design Time

To add elements to the template at design time, complete the following:

1.  Select the **C1TileControl** and click on its smart tag to open the **C1TileControl Tasks** menu.
2.  Select **Edit Tiles**.
    
    The **C1TileControl.Templates Collection Editor** editor appears.
    
3.  Click **Add** to add a template to the **Members** list.
4.  Select the ellipsis button next to the **Elements** property. The **Template.Elements Collection Editor** appears.
5.  Click on the dropdown arrow and select the **PanelElement** twice. Two panels are added to the template.