Glossary Item Box

PowerWEB TextBox for ASP.NET

pwFormat Method

Executes a command identifier on the current IFRAME.

[JavaScript]
pwFormat(pwCommand, pwModifier, pwRestoreRange)

Parameters

pwCommand
Required. The string command identifier to execute.
pwModifier
The modifier for the supplied command identifier. Required by some command identifiers.
pwRestoreRange
true if the last saved text range should be restored before the command is executed. 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 pwFormat method to apply bold formatting.

<script language="javascript">
pwFormat('bold', '', false);
</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.