मैं multi-lineTextBox
पर टेक्स्ट की एक पंक्ति कैसे जोड़ सकता हूं?मल्टीलाइन टेक्स्टबॉक्स में कोई लाइन कैसे जोड़ें?
उदा। स्यूडोकोड;
textBox1.Clear();
textBox1.Lines.Add("1000+");
textBox1.Lines.Add("750-999");
textBox1.Lines.Add("400-749");
...snip...
textBox1.Lines.Add("40-59");
या
textBox1.Lines.Append("brown");
textBox1.Lines.Append("brwn");
textBox1.Lines.Append("brn");
textBox1.Lines.Append("brow");
textBox1.Lines.Append("br");
textBox1.Lines.Append("brw");
textBox1.Lines.Append("brwm");
textBox1.Lines.Append("bron");
textBox1.Lines.Append("bwn");
textBox1.Lines.Append("brnw");
textBox1.Lines.Append("bren");
textBox1.Lines.Append("broe");
textBox1.Lines.Append("bewn");
केवल तरीकों कि TextBox.Lines औजार (है कि मैं देख सकते हैं) कर रहे हैं:
- क्लोन
- CopyTo
- बराबर
- GetType
- GetHashCode
- GetEnumerator
- प्रारंभ
- GetLowerBound
- GetUpperBound
- GetLength
- GetLongLength
- getValue
- setValue
- ToString
क्या आप एपेंड (एनवीरोमेंट न्यूलाइन) का उपयोग नहीं कर सकते ?? – jclozano
टेक्स्टबॉक्स। लाइन्स टेक्स्ट का केवल पढ़ने का प्रतिनिधित्व है। कृपया http://msdn.microsoft.com/en-us/library/system.windows.forms.textboxbase.lines.aspx पर रेफर करें। – Casperah
@ कैस्परह ओह, यह समझाने में मदद करता है कि इसका उपयोग करने के लिए इसका उपयोग क्यों नहीं किया जा सकता है - माइक्रोसॉफ्ट एक धीमी कोड पथ –