Week 32 contribution of PDK documentation content. See release notes for details. Fixes bug Bug 3582
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
<!-- This component and the accompanying materials are made available under the terms of the License
"Eclipse Public License v1.0" which accompanies this distribution,
and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
<!-- Initial Contributors:
Nokia Corporation - initial contribution.
Contributors:
-->
<!DOCTYPE concept
PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept xml:lang="en" id="GUID-74A4A88D-768E-51B9-B50B-81CF35D5D692"><title>How to reset</title><prolog><metadata><keywords/></metadata></prolog><conbody><p>The following code resets the document. Resetting deletes all text and formatting, leaving the end of text paragraph delimiter. Because resetting deletes the document’s content and formatting, a call to <codeph>HandleGlobalChangeL()</codeph> is required to update the formatting and the view.</p> <codeblock id="GUID-3214EF4E-498E-54D5-B1EC-7BD81FD3425C" xml:space="preserve">// Reset document.
iRichText->ResetL(); // change whole document
iTextView->HandleGlobalChangeL();</codeblock> </conbody></concept>