Class ContextPromptCollection
Represents a class that contains ContextPromptCollection.
Inheritance
Implements
Inherited Members
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 |