This is a migrated thread and some comments may be shown as answers.

How do you set Span.UnderlineDecoration at runtime?

2 Answers 126 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Tweel
Top achievements
Rank 1
Tweel asked on 27 Aug 2010, 05:53 AM
Hello,

I cannot see how to underline a Span in the documentation / help for property "UnderlineDecoration".
Can somebody please illustrate how to use it?

Thank you

2 Answers, 1 is accepted

Sort by
0
Accepted
Ivailo Karamanolev
Telerik team
answered on 27 Aug 2010, 08:23 AM
Hi Tweel,

An example on how to use the UnderlineDecoration property:
span.UnderlineDecoration = UnderlineTypes.DoubleLine;
UnderlineTypes also contains a variety of other underlines:
  • None
  • Line
  • DoubleLine
  • ThickLine
  • Wave
  • DottedLine
  • DashedLine
  • DotDashedLine
  • DotDotDashedLine
Unfortunately, the documentation is currently somewhat lagging on the features, however we are working hard to get it and help up to date.
Regards,
Ivailo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Tweel
Top achievements
Rank 1
answered on 31 Aug 2010, 03:59 AM
Thats it, many thanks. You could just copy that response into your package documentation.

For anybody else who needs to use it, the namespace is "Telerik.Windows.Documents.UI.TextDecorations.DecorationProviders".
Cheers
Tags
RichTextBox
Asked by
Tweel
Top achievements
Rank 1
Answers by
Ivailo Karamanolev
Telerik team
Tweel
Top achievements
Rank 1
Share this question
or