Glossary Item Box

PowerWEB TextBox for ASP.NET

pwFormatInsertRule Method

Inserts a horizontal rule into the current HtmlBox.

[JavaScript]
pwFormatInsertRule(pwAlign, pwWidth, pwColor, pwSize, pwNoShade)

Parameters

pwAlign
The alignment of the horizontal rule.
pwWidth
The width of the horizontal rule.
pwColor
The color of the horizontal rule.
pwSize
The size of the horizontal rule.
pwNoShade
true if the horizontal rule should be shaded, false otherwise.

Remarks

This method operates on the current HtmlBox (the HtmlBox that currently has focus). See the MSDN DHTML execCommand method for more information on command identifiers.

Example

[JavaScript] The following example demonstrates using the pwFormatInsertRule method to insert a horizontal rule.

<script language="javascript">
<input type='button' value='Click here to insert a rule' onclick='pwFormatInsertRule("center", "80%", "red", "3", true)'>
</script>

	

In This Section

Assembly Overview
Contains classes that support and enable creation of HTML-editing capable web applications.
Client-Side API
Describes client-side JavaScript functions that are used by PowerWEB TextBox for ASP.NET.

 

 


Send comments on this topic.

Documentation version 3.2.0.0.

© 2009 Dart Communications.  All rights reserved.