DesignTimeData 类

定义

提供帮助器方法,控件设计器可以使用这些方法在设计时生成数据绑定属性的示例数据。Provides helper methods that can be used by control designers to generate sample data for data-bound properties at design time. 此类不能被继承。This class cannot be inherited.

public ref class DesignTimeData sealed
public sealed class DesignTimeData
type DesignTimeData = class
Public NotInheritable Class DesignTimeData
继承
DesignTimeData

字段

DataBindingHandler

获取数据绑定的事件处理程序。Gets an event handler for data binding.

方法

CreateDummyDataBoundDataTable()

创建一个 DataTable 对象,该对象包含三列,列的名称指示这些列连接到数据源。Creates a DataTable object that contains three columns with names indicating that the columns are connected to a data source.

CreateDummyDataTable()

创建一个 DataTable 对象,包含三列,列的名称指示这些列包含示例数据。Creates a DataTable object that contains three columns with names that indicate that the columns contain sample data.

CreateSampleDataTable(IEnumerable)

创建一个与提供的数据具有相同架构的示例 DataTable 对象。Creates a sample DataTable object with the same schema as the provided data.

CreateSampleDataTable(IEnumerable, Boolean)

创建一个与提供的数据具有相同架构的 DataTable 对象,该对象还可以选择包含指示数据为绑定数据的列名称。Creates a DataTable object with the same schema as the provided data and optionally containing column names indicating that the data is bound data.

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetDataFields(IEnumerable)

获取指定数据源的数据字段的属性说明符集合。Gets a collection of property descriptors for the data fields of the specified data source.

GetDataMember(IListSource, String)

从指定的数据源获取指定的数据成员。Gets the specified data member from the specified data source.

GetDataMembers(Object)

获取指定数据源中的数据成员的名称。Gets the names of the data members in the specified data source.

GetDesignTimeDataSource(DataTable, Int32)

向指定数据表中添加指定数目的示例行。Adds the specified number of sample rows to the specified data table.

GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetSelectedDataSource(IComponent, String)

获取在设计宿主中根据名称选择、由指定组件的站点属性表示并由指定的数据源名称标识的数据源。Gets a data source selected by name in the design host, represented by the specified component's site property and identified by the specified data source name.

GetSelectedDataSource(IComponent, String, String)

获取在设计宿主中根据名称选择、由指定组件的站点属性表示并由指定的数据源名称和成员名称标识的数据源。Gets a data source selected by name in the design host, represented by the specified component's site property and identified by the specified data-source name and member name.

GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅