How to get text Color of TRichEdit - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

How to get text Color of TRichEdit

dubidubi Posts: 121Member
I am in need to know how to get the text color of
a particular line in a TRichEdit.
The lines in my RichEdit has one or more differnt colors.

How can I know the text color of a particuluar Line.
For example,if the 5th line text is Blue color and the
other Lines Black,how can I know that 5th line text is Blue in color.
The properties DefAttributes and SelAttributes are only to set
the color and change color for selected Lines.
Is there any way to get what color is the text for a particular line.

Bigger thanks for your replies.

Comments

  • zibadianzibadian Posts: 6,349Member
    : I am in need to know how to get the text color of
    : a particular line in a TRichEdit.
    : The lines in my RichEdit has one or more differnt colors.
    :
    : How can I know the text color of a particuluar Line.
    : For example,if the 5th line text is Blue color and the
    : other Lines Black,how can I know that 5th line text is Blue in color.
    : The properties DefAttributes and SelAttributes are only to set
    : the color and change color for selected Lines.
    : Is there any way to get what color is the text for a particular line.
    :
    : Bigger thanks for your replies.
    :
    You can also get the color using the SelAttributes. Just select a part of the line and check out the SelAttributes.
Sign In or Register to comment.