InputPanel for WinForms帮助文档
DataField 属性






Gets or sets the field of the data source to which this component is bound.
语法
'声明
 
<System.ComponentModel.MergablePropertyAttribute(False)>
<System.ComponentModel.DefaultValueAttribute()>
<C1DescriptionAttribute("该组件绑定到数据源的字段。")>
<C1CategoryAttribute("数据")>
<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)>
<System.ComponentModel.EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="System.Windows.Forms.Design.DataMemberFieldEditor, System.Design")>
Public Overridable Property DataField As System.String
'用法
 
Dim instance As InputComponent
Dim value As System.String
 
instance.DataField = value
 
value = instance.DataField
[System.ComponentModel.MergableProperty(false)]
[System.ComponentModel.DefaultValue()]
[C1Description("该组件绑定到数据源的字段。")]
[C1Category("数据")]
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Editor(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="System.Windows.Forms.Design.DataMemberFieldEditor, System.Design")]
public virtual System.string DataField {get; set;}
public read-write property DataField: System.String; virtual; 
System.ComponentModel.MergablePropertyAttribute()
System.ComponentModel.DefaultValueAttribute()
C1DescriptionAttribute("该组件绑定到数据源的字段。")
C1CategoryAttribute("数据")
System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)
System.ComponentModel.EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="System.Windows.Forms.Design.DataMemberFieldEditor, System.Design")
public function get,set DataField : System.String
[System.ComponentModel.MergableProperty(false)]
[System.ComponentModel.DefaultValue()]
[C1Description("该组件绑定到数据源的字段。")]
[C1Category("数据")]
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Editor(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="System.Windows.Forms.Design.DataMemberFieldEditor, System.Design")]
public: __property virtual System.string* get_DataField();
public: __property virtual void set_DataField( 
   System.string* value
);
[System.ComponentModel.MergableProperty(false)]
[System.ComponentModel.DefaultValue()]
[C1Description("该组件绑定到数据源的字段。")]
[C1Category("数据")]
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Editor(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="System.Windows.Forms.Design.DataMemberFieldEditor, System.Design")]
public:
virtual property System.String^ DataField {
   System.String^ get();
   void set (    System.String^ value);
}
需求

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

请参见

引用

InputComponent 类
InputComponent 成员

Send Feedback