| C1.Win.C1Input Namespace > C1TextBox Class : MaxLineCount Property |
'Declaration<C1CategoryAttribute("Behavior")> <C1DescriptionAttribute("Gets or sets the maximum number of lines.")> <DefaultValueAttribute()> Public Property MaxLineCount As Integer
'UsageDim instance As C1TextBox Dim value As Integer instance.MaxLineCount = value value = instance.MaxLineCount
[C1Category("Behavior")] [C1Description("Gets or sets the maximum number of lines.")] [DefaultValue()] public int MaxLineCount {get; set;}
[C1Category("Behavior")] [C1Description("Gets or sets the maximum number of lines.")] [DefaultValue()] public: property int MaxLineCount { int get(); void set ( int value); }
MaxLineCount limits the acceptable lines of text when the Multiline property is true.
This property does not work with wrapped lines, so preferrable is to use MaxLineCount when System.Windows.Forms.TextBoxBase.WordWrap property is true.
The default value of this property, zero, means no limit.
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