InputPanel for WinForms帮助文档
ReadOnly 属性 (InputTextBox)






Gets or sets a value indicating whether the contents of the component can be changed.
语法
'声明
 
<C1DescriptionAttribute("指示是否此组件的内容可以被改变。")>
<System.ComponentModel.DefaultValueAttribute()>
<C1CategoryAttribute("行为")>
Public Property ReadOnly As System.Boolean
'用法
 
Dim instance As InputTextBox
Dim value As System.Boolean
 
instance.ReadOnly = value
 
value = instance.ReadOnly
[C1Description("指示是否此组件的内容可以被改变。")]
[System.ComponentModel.DefaultValue()]
[C1Category("行为")]
public System.bool ReadOnly {get; set;}
public read-write property ReadOnly: System.Boolean; 
C1DescriptionAttribute("指示是否此组件的内容可以被改变。")
System.ComponentModel.DefaultValueAttribute()
C1CategoryAttribute("行为")
public function get,set ReadOnly : System.boolean
[C1Description("指示是否此组件的内容可以被改变。")]
[System.ComponentModel.DefaultValue()]
[C1Category("行为")]
public: __property System.bool get_ReadOnly();
public: __property void set_ReadOnly( 
   System.bool value
);
[C1Description("指示是否此组件的内容可以被改变。")]
[System.ComponentModel.DefaultValue()]
[C1Category("行为")]
public:
property System.bool ReadOnly {
   System.bool get();
   void set (    System.bool 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

请参见

引用

InputTextBox 类
InputTextBox 成员

Send Feedback