InputPanel for WinForms帮助文档
DataSource 属性 (InputComponent)






Gets or sets the data source object for this input component.
语法
'声明
 
<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)>
<C1CategoryAttribute("数据")>
<System.ComponentModel.DefaultValueAttribute()>
<System.ComponentModel.AttributeProviderAttribute(TypeName="System.ComponentModel.IListSource, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", PropertyName="")>
<System.ComponentModel.RefreshPropertiesAttribute(RefreshProperties.Repaint)>
<C1DescriptionAttribute("此输入组件的数据源对象。")>
<System.ComponentModel.MergablePropertyAttribute(False)>
Public Overridable Property DataSource As System.Object
'用法
 
Dim instance As InputComponent
Dim value As System.Object
 
instance.DataSource = value
 
value = instance.DataSource
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[C1Category("数据")]
[System.ComponentModel.DefaultValue()]
[System.ComponentModel.AttributeProvider(TypeName="System.ComponentModel.IListSource, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", PropertyName="")]
[System.ComponentModel.RefreshProperties(RefreshProperties.Repaint)]
[C1Description("此输入组件的数据源对象。")]
[System.ComponentModel.MergableProperty(false)]
public virtual System.object DataSource {get; set;}
public read-write property DataSource: System.TObject; virtual; 
System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)
C1CategoryAttribute("数据")
System.ComponentModel.DefaultValueAttribute()
System.ComponentModel.AttributeProviderAttribute(TypeName="System.ComponentModel.IListSource, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", PropertyName="")
System.ComponentModel.RefreshPropertiesAttribute(RefreshProperties.Repaint)
C1DescriptionAttribute("此输入组件的数据源对象。")
System.ComponentModel.MergablePropertyAttribute()
public function get,set DataSource : System.Object
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[C1Category("数据")]
[System.ComponentModel.DefaultValue()]
[System.ComponentModel.AttributeProvider(TypeName="System.ComponentModel.IListSource, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", PropertyName="")]
[System.ComponentModel.RefreshProperties(RefreshProperties.Repaint)]
[C1Description("此输入组件的数据源对象。")]
[System.ComponentModel.MergableProperty(false)]
public: __property virtual System.Object* get_DataSource();
public: __property virtual void set_DataSource( 
   System.Object* value
);
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[C1Category("数据")]
[System.ComponentModel.DefaultValue()]
[System.ComponentModel.AttributeProvider(TypeName="System.ComponentModel.IListSource, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", PropertyName="")]
[System.ComponentModel.RefreshProperties(RefreshProperties.Repaint)]
[C1Description("此输入组件的数据源对象。")]
[System.ComponentModel.MergableProperty(false)]
public:
virtual property System.Object^ DataSource {
   System.Object^ get();
   void set (    System.Object^ 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