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. C# (CRL) RichTextBox Control and Fonts

C# (CRL) RichTextBox Control and Fonts

Scheduled Pinned Locked Moved C#
learningcsharphelptutorialquestion
2 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.
  • K Offline
    K Offline
    KingTermite
    wrote on last edited by
    #1

    Hi all...I'm writing a small program (learning C#....yes I'm a beginner). I am using the RichTextBox control that the users can enter or paste in some text. Then afterward, I want to go through that text in the control character by character and be able to determine each characters font style, size, etc..... Can anyone point me in the right direction for that? I was able to set fonts, etc... correctly (giving them a context menu to do a few things), when its all said and done I want to parse the style, character by character. Help Please! Small example, or web page example, or even a pointer as to what methods to start with would be helpful. Thanks. There are only 10 types of people in this world....those that understand binary, and those that do not.

    K 1 Reply Last reply
    0
    • K KingTermite

      Hi all...I'm writing a small program (learning C#....yes I'm a beginner). I am using the RichTextBox control that the users can enter or paste in some text. Then afterward, I want to go through that text in the control character by character and be able to determine each characters font style, size, etc..... Can anyone point me in the right direction for that? I was able to set fonts, etc... correctly (giving them a context menu to do a few things), when its all said and done I want to parse the style, character by character. Help Please! Small example, or web page example, or even a pointer as to what methods to start with would be helpful. Thanks. There are only 10 types of people in this world....those that understand binary, and those that do not.

      K Offline
      K Offline
      Kannan Kalyanaraman
      wrote on last edited by
      #2

      For finer control over richtext, you can serialize the contents to a file or string and then parse it individually using the RT file format, you can get the format from wotsit[^] - Kannan

      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