संपादित करें

इसके माध्यम से साझा किया गया


DesignTimeData Class

Definition

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
Inheritance
DesignTimeData

Fields

DataBindingHandler

Gets an event handler for data binding.

Methods

CreateDummyDataBoundDataTable()

Creates a DataTable object that contains three columns with names indicating that the columns are connected to a data source.

CreateDummyDataTable()

Creates a DataTable object that contains three columns with names that indicate that the columns contain sample data.

CreateSampleDataTable(IEnumerable, Boolean)

Creates a DataTable object with the same schema as the provided data and optionally containing column names indicating that the data is bound data.

CreateSampleDataTable(IEnumerable)

Creates a sample DataTable object with the same schema as the provided data.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from 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.

(Inherited from Object)
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.

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.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also