menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class WDropDownCollection - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class WDropDownCollection

    Represent a collection of WDropDownItem objects.

    Inheritance
    System.Object
    OwnerHolder
    CollectionImpl
    XDLSSerializableCollection
    WDropDownCollection
    Implements
    IXDLSSerializableCollection
    System.Collections.IEnumerable
    Inherited Members
    CollectionImpl.Count
    CollectionImpl.GetEnumerator()
    OwnerHolder.Document
    OwnerHolder.m_doc
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    XDLSSerializableCollection.IXDLSSerializableCollection.AddNewItem(IXDLSContentReader)
    XDLSSerializableCollection.IXDLSSerializableCollection.TagItemName
    Namespace: Syncfusion.DocIO.DLS
    Assembly: Syncfusion.DocIO.Base.dll
    Syntax
    public class WDropDownCollection : XDLSSerializableCollection, IXDLSSerializableCollection, IEnumerable

    Constructors

    WDropDownCollection(WordDocument)

    Initializes a new instance of the WDropDownCollection class.

    Declaration
    public WDropDownCollection(WordDocument doc)
    Parameters
    Type Name Description
    WordDocument doc

    The doc.

    Properties

    Item[Int32]

    Gets the WDropDownItem at the specified index.

    Declaration
    public WDropDownItem this[int index] { get; }
    Parameters
    Type Name Description
    System.Int32 index
    Property Value
    Type
    WDropDownItem

    Methods

    Add(String)

    Adds the item.

    Declaration
    public WDropDownItem Add(string text)
    Parameters
    Type Name Description
    System.String text

    The text.

    Returns
    Type
    WDropDownItem

    Clear()

    Clears this instance.

    Declaration
    public void Clear()

    CreateItem(IXDLSContentReader)

    Creates the item.

    Declaration
    protected override OwnerHolder CreateItem(IXDLSContentReader reader)
    Parameters
    Type Name Description
    IXDLSContentReader reader

    The reader.

    Returns
    Type
    OwnerHolder
    Overrides
    XDLSSerializableCollection.CreateItem(IXDLSContentReader)

    GetTagItemName()

    Gets name of xml tag

    Declaration
    protected override string GetTagItemName()
    Returns
    Type
    System.String
    Overrides
    XDLSSerializableCollection.GetTagItemName()

    Remove(Int32)

    Removes DropDownItems by index.

    Declaration
    public void Remove(int index)
    Parameters
    Type Name Description
    System.Int32 index

    The index.

    Implements

    IXDLSSerializableCollection
    System.Collections.IEnumerable

    Extension Methods

    FunctionalExtensions.ForEach<T>(IEnumerable, Action<T>)
    FunctionalExtensions.ToList<T>(IEnumerable)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved