Underline (Function)

Gets or sets the underline state of the element by modifying or return the style property text-decoration. If text-decoration is set to underline, true is returned, otherwise false. When setting the underline state, the calling element is returned so that property calls can be chained.

   1:  $Div("id").Style(Style.TextDecoration, "underline");
   2:  $Div("id").Underline(true);

The statements above are equivalent.

 

Overloads

Underline() : Boolean – Returns true if text-decoration is set to underline, otherwise false.

Underline(String text) : Element -  Sets the text-decoration to underline if true, otherwise "normal"

Last edited Jan 5, 2011 at 8:21 PM by dahrkdaiz, version 1

Comments

No comments yet.