TextDecoration


TextDecorationHierarchy: DependencyObject Freezable Animatable

 <TextDecoration     Location="Baseline|Overline|Underline|Strikethrough"     PenThicknessUnit="FontRecommended|FontRenderingEmSize|Pixel"     PenOffset="1.0"     PenOffsetUnit="FontRecommended|FontRenderingEmSize|Pixel">     <TextDecoration.Pen>         <Pen .../>     </TextDecoration.Pen> </TextDecoration> 

<TextDecoration .../> specifies a decoration to be applied to text, such as underlining or strikethrough.

Attributes


Location (optional)

Specifies the vertical location at which the decoration will appear. Must be one of the following:


Baseline

Decoration appears at the vertical position of baseline.


Overline

Decoration appears at the vertical position of overline.


Strikethrough

Decoration appears at the vertical position of strikethrough.


Underline

Decoration appears at the vertical position of underline.


PenOffset (optional)

Specifies the decoration's offset from its Location, expressed as a Double and interpreted based on the PenOffsetUnit.


PenOffsetUnit (optional)

Defines the thickness unit of the PenOffset.


FontRecommended

The value is relative to the Avalon-calculated recommended value. This is the default value.


FontRenderingEmSize

The value is relative to the font em size. The effective value is the thickness or offset multiplied by the font em size.


Pixel

The value is expressed in pixels.


PenThicknessUnit (optional)

Defines the thickness unit of the Pen.


FontRecommended

The value is relative to the Avalon-calculated recommended value. This is the default value.


FontRenderingEmSize

The value is relative to the font em size. The effective value is the thickness or offset multiplied by the font em size.


Pixel

The value is expressed in pixels.


TextDecoration.Pen (optional)

Specifies the Pen to be used to draw the Textdecoration.




XAML in a Nutshell
XAML in a Nutshell (In a Nutshell (OReilly))
ISBN: 0596526733
EAN: 2147483647
Year: 2007
Pages: 217

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net