INTTabFactory Interface

View as Markdown

If you wish to have tab page functionality like adding, removing, moving, duplicating tabs you must create a class which implements the INTTabFactory interface.

This interface contains two methods which must be hidden:

Syntax

NTWindow CreateParentWindow()

NTTabPage CreateTabPage(string typeName, bool isNewWindow = false)

Examples

1public class MyWindowFactory : INTTabFactory
2{
3 // INTTabFactory member. Creates the parent window that contains tabs
4 public NTWindow CreateParentWindow()
5 {
6 return new MyWindow();
7 }
8
9 // INTTabFactory member. Creates new tab pages whenever the user presses the + button
10 public NTTabPage CreateTabPage(string typeName)
11 {
12 return new MyWindowTabPage();
13 }
14}