skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class ListCollection

Represents dynamic collection of lists.

Inheritance
System.Object
ListCollection
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.Windows.Documents.Flow.Model.Lists
Assembly: Telerik.Windows.Documents.Flow.dll

Syntax

public sealed class ListCollection : IEnumerable<List>, IEnumerable

Properties

Count

Gets the number of lists contained in the collection.

Declaration
public int Count { get; }
Property Value
System.Int32

The number of lists contained in the collection.

Methods

Add(List)

Adds an list to the collection.

Declaration
public void Add(List list)
Parameters
List list

The list to add to the collection.

Add(ListTemplateType)

Adds list according to the list template parameter.

Declaration
public List Add(ListTemplateType listTemplate)
Parameters
ListTemplateType listTemplate

The list template.

Returns
List

The added list.

Clear()

Removes all lists from the collection.

Declaration
public void Clear()

Contains(List)

Determines whether the collection contains a specific item.

Declaration
public bool Contains(List list)
Parameters
List list

The item to locate in the collection.

Returns
System.Boolean

true if list is found in the collection; otherwise, false.

GetEnumerator()

Returns an enumerator that iterates through the collection.

Declaration
public IEnumerator<List> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<List>

A System.Collections.Generic.IEnumerator<T> that can be used to iterate through the collection.

Implements
System.Collections.Generic.IEnumerable<T>.GetEnumerator()

GetList(Int32)

Gets the list.

Declaration
public List GetList(int id)
Parameters
System.Int32 id

The id.

Returns
List

Remove(Int32)

Removes the specified list by list id.

Declaration
public bool Remove(int listId)
Parameters
System.Int32 listId

The list id.

Returns
System.Boolean

true if listId was successfully removed from the collection; otherwise, false. This method also returns false if list with listId is not found in the collection.

Remove(List)

Removes the first occurrence of a specific object from the collection.

Declaration
public bool Remove(List list)
Parameters
List list

The list to remove from the collection.

Returns
System.Boolean

true if list was successfully removed from the collection; otherwise, false. This method also returns false if list is not found in the collection.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
System.Collections.IEnumerator

An System.Collections.IEnumerator object that can be used to iterate through the collection.

Implements
System.Collections.IEnumerable.GetEnumerator()
Getting Started
  • Getting Started
Support Resources
  • Documentation
Community
  • Forums
  • Blogs
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.