menu

WinForms

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

    Show / Hide Table of Contents

    Class ContextPromptCollection

    Represents a class that contains ContextPromptCollection.

    Inheritance
    System.Object
    System.Collections.CollectionBase
    EventBaseCollection
    ContextPromptCollection
    Implements
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    Inherited Members
    EventBaseCollection.Cleared
    EventBaseCollection.Clearing
    EventBaseCollection.Inserted
    EventBaseCollection.Inserting
    EventBaseCollection.OnChanged
    EventBaseCollection.OnClear()
    EventBaseCollection.OnClearComplete()
    EventBaseCollection.OnInsert(Int32, Object)
    EventBaseCollection.OnInsertComplete(Int32, Object)
    EventBaseCollection.OnRemove(Int32, Object)
    EventBaseCollection.OnRemoveComplete(Int32, Object)
    EventBaseCollection.OnSet(Int32, Object, Object)
    EventBaseCollection.OnSetComplete(Int32, Object, Object)
    EventBaseCollection.QuietMode
    EventBaseCollection.RaiseOnChangedEvent()
    EventBaseCollection.Removed
    EventBaseCollection.Removing
    EventBaseCollection.Set
    EventBaseCollection.Setting
    System.Collections.CollectionBase.Capacity
    System.Collections.CollectionBase.Clear()
    System.Collections.CollectionBase.Count
    System.Collections.CollectionBase.GetEnumerator()
    System.Collections.CollectionBase.InnerList
    System.Collections.CollectionBase.List
    System.Collections.CollectionBase.OnValidate(System.Object)
    System.Collections.CollectionBase.RemoveAt(System.Int32)
    System.Collections.CollectionBase.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
    System.Collections.CollectionBase.System.Collections.ICollection.IsSynchronized
    System.Collections.CollectionBase.System.Collections.ICollection.SyncRoot
    System.Collections.CollectionBase.System.Collections.IList.Add(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.Contains(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.get_Item(System.Int32)
    System.Collections.CollectionBase.System.Collections.IList.IndexOf(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.Insert(System.Int32, System.Object)
    System.Collections.CollectionBase.System.Collections.IList.IsFixedSize
    System.Collections.CollectionBase.System.Collections.IList.IsReadOnly
    System.Collections.CollectionBase.System.Collections.IList.Item[System.Int32]
    System.Collections.CollectionBase.System.Collections.IList.Remove(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.set_Item(System.Int32, System.Object)
    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()
    Namespace: Syncfusion.Windows.Forms.Edit.Implementation
    Assembly: Syncfusion.Edit.Windows.dll
    Syntax
    public class ContextPromptCollection : EventBaseCollection, IList, ICollection, IEnumerable

    Constructors

    ContextPromptCollection()

    Initializes a new instance of the ContextPromptCollection class.

    Declaration
    public ContextPromptCollection()

    Properties

    Item[Int32]

    Gets or sets the item in the list by index.

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

    SelectedItem

    Gets or sets the currently selected item.

    Declaration
    public ContextPromptItem SelectedItem { get; set; }
    Property Value
    Type
    ContextPromptItem

    Methods

    Add()

    Creates new context prompt item and adds it to the list.

    Declaration
    public ContextPromptItem Add()
    Returns
    Type Description
    ContextPromptItem

    Newly created ContextPromptItem object.

    Add(ContextPromptItem)

    Adds item to the list.

    Declaration
    public void Add(ContextPromptItem item)
    Parameters
    Type Name Description
    ContextPromptItem item

    ContextPromptItem to be added to the list.

    Add(String)

    Creates new context prompt item and adds it to the list.

    Declaration
    public ContextPromptItem Add(string subject)
    Parameters
    Type Name Description
    System.String subject

    Subject of the item.

    Returns
    Type Description
    ContextPromptItem

    Newly created ContextPromptItem object.

    Add(String, String)

    Creates new context prompt item and adds it to the list.

    Declaration
    public ContextPromptItem Add(string subject, string description)
    Parameters
    Type Name Description
    System.String subject

    Subject of the item.

    System.String description

    Default description of the item.

    Returns
    Type Description
    ContextPromptItem

    Newly created ContextPromptItem object.

    Add(String, String, Image)

    Creates new context prompt item and adds it to the list.

    Declaration
    public ContextPromptItem Add(string subject, string description, Image image)
    Parameters
    Type Name Description
    System.String subject

    Subject of the item.

    System.String description

    Default description of the item.

    System.Drawing.Image image

    Image to associate with item.

    Returns
    Type Description
    ContextPromptItem

    Newly created ContextPromptItem object.

    IndexOf(ContextPromptItem)

    Gets index of the item.

    Declaration
    public int IndexOf(ContextPromptItem item)
    Parameters
    Type Name Description
    ContextPromptItem item

    Item to find.

    Returns
    Type Description
    System.Int32

    Index of the item.

    OnDataChanged()

    Notifies about change of data.

    Declaration
    protected void OnDataChanged()

    Remove(ContextPromptItem)

    Removes item from the list.

    Declaration
    public void Remove(ContextPromptItem item)
    Parameters
    Type Name Description
    ContextPromptItem item

    Item to be removed from the list.

    Events

    BoldedItemSelectionChanged

    Occurs when bolded item selection of the currently selected item has changed.

    Declaration
    public event EventHandler BoldedItemSelectionChanged
    Event Type
    Type
    System.EventHandler

    SelectionChanged

    Occurs when selection has been changed in context prompt window.

    Declaration
    public event EventHandler SelectionChanged
    Event Type
    Type
    System.EventHandler

    Implements

    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable

    Extension Methods

    EnumerableExtensions.GetElementType(IEnumerable)
    EnumerableExtensions.GetItemPropertyInfo(IEnumerable)
    FunctionalExtensions.ForEach<T>(IEnumerable, Action<T>)
    FunctionalExtensions.ToList<T>(IEnumerable)
    FunctionalExtensions.MoveTo(IList, Int32, Int32)
    QueryableExtensions.OfQueryable(IEnumerable)
    QueryableExtensions.OfQueryable(IEnumerable, Type)
    QueryableExtensions.GroupByMany<TElement>(IEnumerable, Type, List<Func<TElement, Object>>)
    QueryableExtensions.GroupByMany(IEnumerable, Type, Func<String, Expression>, String[])
    QueryableExtensions.GroupByMany(IEnumerable, Type, List<SortDescriptor>, Dictionary<String, IComparer<Object>>, Func<String, Expression>, String[])
    QueryableExtensions.GroupByMany(IEnumerable, Type, List<SortDescriptor>, Func<String, Expression>, String[])
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved