Monday, December 14, 2009

TextDecoration Class

In .Net Framework 3.0. There is one new class is introduced named Text Decoration under the name space System.Windows.

A TextDecoration object is a visual ornamentation you can add to text

There are four types of text decorations: underline, baseline, strikethrough, and overline. The following example shows the locations of the text decorations relative to the text.

Example of text decoration types

Diagram of text decoration locations

The following example shows a text decoration that has been styled with a linear gradient brush and a dashed pen.

Example of an underline styled with a linear gradient brush and dashed pen

Text decoration with linear gradient underline


Visit more here about Text Decoration class…..

No comments: