Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Remove white space from the beginning of a rich text

Remove white space from the beginning of a rich text

Scheduled Pinned Locked Moved C#
question
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Agyeman
    wrote on last edited by
    #1

    How do i remove white spaces from the beginning of a rich text. thanks Nana

    C 1 Reply Last reply
    0
    • A Agyeman

      How do i remove white spaces from the beginning of a rich text. thanks Nana

      C Offline
      C Offline
      CWIZO
      wrote on last edited by
      #2

      Use the Trim method... Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!

      A 1 Reply Last reply
      0
      • C CWIZO

        Use the Trim method... Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!

        A Offline
        A Offline
        Agyeman
        wrote on last edited by
        #3

        Thanks. But it is not working. I used the enter key to return to the next line. I did that through a couple of lines before typing the data. Now what I need to do is remove those return characters from the beginning while keeping the format. thx Nana

        C 1 Reply Last reply
        0
        • A Agyeman

          Thanks. But it is not working. I used the enter key to return to the next line. I did that through a couple of lines before typing the data. Now what I need to do is remove those return characters from the beginning while keeping the format. thx Nana

          C Offline
          C Offline
          CWIZO
          wrote on last edited by
          #4

          Well those are not spaces, so logically it will not work, eh? Then you will have to use the Replace method, figuring out the algoritm shouldn't be to hard... Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!

          A 1 Reply Last reply
          0
          • C CWIZO

            Well those are not spaces, so logically it will not work, eh? Then you will have to use the Replace method, figuring out the algoritm shouldn't be to hard... Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!

            A Offline
            A Offline
            Agyeman
            wrote on last edited by
            #5

            thanks Nana

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups