共用方式為


ModelingBindingSource Class

Definition

A specialized BindingSource for use with DSL Tools' models.

public ref class ModelingBindingSource : System::Windows::Forms::BindingSource
public class ModelingBindingSource : System.Windows.Forms.BindingSource
type ModelingBindingSource = class
    inherit BindingSource
Public Class ModelingBindingSource
Inherits BindingSource
Inheritance
ModelingBindingSource

Constructors

ModelingBindingSource()

Initializes a new instance of the Microsoft.VisualStudio.Modeling.Design.ModelingBindingSource class to the default property values.

ModelingBindingSource(IContainer)

Initializes a new instance of the Microsoft.VisualStudio.Modeling.Design.ModelingBindingSource class and adds newly created ModelingBindingSource object to the specified container.

ModelingBindingSource(Object, String)

Initializes a new instance of the Microsoft.VisualStudio.Modeling.Design.ModelingBindingSource class with the specified data source and data member.

Properties

AllowNew

Is AddNew allowed to be called on this source.

IsValidDataSource

Returns true if the criteria for a valid DataSource is fulfilled.

Item[Int32]

Gets or sets the list item at the specified index.

Methods

Add(Object)

Adds an existing item to the list.

AddNew()

Adds a new item to the underlying list.

Clear()

Removes all elements from the list.

Insert(Int32, Object)

Inserts an item into the list at the specified index.

OnListChanged(ListChangedEventArgs)

When the list has been changed this method is called in order to reset the store event handlers and reset the state of a valid datasource.

OnPropertyChanged(Object, EventArgs)

When a property changes we need to notify the base class that the item has change so that the row of that item will be repainted. Without this notification only the current row can detect changes and repaint itself - see bug #611878 for more info

Remove(Object)

Removes the specified item from the list.

RemoveAt(Int32)

Removes the item at the specified index in the list.

Applies to