Extended Library for UWP | ComponentOne
Extended Library Overview / Book for UWP / Book for UWP Task-Based Help / Clearing Items in a Book
In This Topic
    Clearing Items in a Book
    In This Topic

    You may choose to allow users to clear all items from the C1Book control at run time, or you may need to clear the items collection when binding and then rebinding the control to another data source.

    For example, to clear the book's content, add the following code to your project:

    Visual Basic
    Copy Code
    c1book1.Items.Clear()
    

    C#
    Copy Code
    c1book1.Items.Clear();
    

    What You've Accomplished

    The control's content will be cleared. If you run the application, you will observe that the book is blank.

    See Also