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






Gets or sets an object that contains data associated with this component.
语法
'声明
 
<C1DescriptionAttribute("InputComponent.Tag")>
<System.ComponentModel.TypeConverterAttribute("System.ComponentModel.StringConverter, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")>
<System.ComponentModel.LocalizableAttribute(False)>
<System.ComponentModel.BindableAttribute(Bindable=True, Direction=BindingDirection.OneWay)>
<System.ComponentModel.DefaultValueAttribute()>
<C1CategoryAttribute("数据")>
Public Property Tag As System.Object
'用法
 
Dim instance As InputComponent
Dim value As System.Object
 
instance.Tag = value
 
value = instance.Tag
[C1Description("InputComponent.Tag")]
[System.ComponentModel.TypeConverter("System.ComponentModel.StringConverter, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
[System.ComponentModel.Localizable(false)]
[System.ComponentModel.Bindable(Bindable=true, Direction=BindingDirection.OneWay)]
[System.ComponentModel.DefaultValue()]
[C1Category("数据")]
public System.object Tag {get; set;}
public read-write property Tag: System.TObject; 
C1DescriptionAttribute("InputComponent.Tag")
System.ComponentModel.TypeConverterAttribute("System.ComponentModel.StringConverter, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")
System.ComponentModel.LocalizableAttribute()
System.ComponentModel.BindableAttribute(Bindable=, Direction=BindingDirection.OneWay)
System.ComponentModel.DefaultValueAttribute()
C1CategoryAttribute("数据")
public function get,set Tag : System.Object
[C1Description("InputComponent.Tag")]
[System.ComponentModel.TypeConverter("System.ComponentModel.StringConverter, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
[System.ComponentModel.Localizable(false)]
[System.ComponentModel.Bindable(Bindable=true, Direction=BindingDirection.OneWay)]
[System.ComponentModel.DefaultValue()]
[C1Category("数据")]
public: __property System.Object* get_Tag();
public: __property void set_Tag( 
   System.Object* value
);
[C1Description("InputComponent.Tag")]
[System.ComponentModel.TypeConverter("System.ComponentModel.StringConverter, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
[System.ComponentModel.Localizable(false)]
[System.ComponentModel.Bindable(Bindable=true, Direction=BindingDirection.OneWay)]
[System.ComponentModel.DefaultValue()]
[C1Category("数据")]
public:
property System.Object^ Tag {
   System.Object^ get();
   void set (    System.Object^ value);
}
备注
The value of this property is not persisted in XML.
需求

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