Basic Library for WPF and Silverlight | ComponentOne
C1.WPF Namespace / C1MenuList Class / ToList<T> Method
The type of the container, e.g. C1TreeViewItem

In This Topic
    ToList<T> Method (C1MenuList)
    In This Topic
    Creates a list with all the item containers present in the Hierarchical Presenter at the moment of invocation.
    Syntax
    'Declaration
     
    
    Public Function ToList(Of T As C1HierarchicalPresenter)() As IList(Of T)
    public IList<T> ToList<T>()
    where T: C1HierarchicalPresenter

    Type Parameters

    T
    The type of the container, e.g. C1TreeViewItem

    Return Value

    The list of item containers.
    See Also