| | 30 | return notebook.AppendPage(page, CreateNotebookTabLabelWithClose(notebook, page, title)); |
| | 31 | } |
| | 32 | |
| | 33 | /// <summary> |
| | 34 | /// Creates a widget to be used as the label for a notebook tab with text and a close button |
| | 35 | /// </summary> |
| | 36 | /// <param name="notebook"> |
| | 37 | /// The <see cref="Notebook"/> the page is on |
| | 38 | /// </param> |
| | 39 | /// <param name="page"> |
| | 40 | /// The <see cref="Widget"/> that is the content of the page |
| | 41 | /// </param> |
| | 42 | /// <param name="title"> |
| | 43 | /// The text to display on the tab |
| | 44 | /// </param> |
| | 45 | /// <returns> |
| | 46 | /// A <see cref="Widget"/> that can be used as a tab label that contains the label with the title text and a close button |
| | 47 | /// </returns> |
| | 48 | public static Widget CreateNotebookTabLabelWithClose(Notebook notebook, Widget page,String title) |
| | 49 | { |