Textbox.text.trim ()

Source: Internet
Author: User

What is the difference between Textbox.text.trim () and TextBox.Text use

TextBox.Text is any string that receives input from the user, and TextBox.Text.Trim () cannot receive user-entered spaces (beginning and trailing spaces), because the data type of TextBox.Text is of type string, So we can think of TextBox.Text as a string, you can manipulate it with arbitrary strings, trim () is just one of those operations, all from the string object, but we can't think of trim () as a method in a textbox, So TextBox.Text and TextBox.Text.Trim () are not comparable.

What does the Trim () of TextBox1.Text.Trim () in C # mean


Removes all leading and trailing white-space characters from the current String object. is to remove the space on both sides of the string    ! 

Textbox.text.trim ()

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.