ClearAll Method

See Also         Example         Applies To

TabStops object: Clears all the custom tab stops from the specified paragraphs.

KeyBindings object: Clears all the customized key assignments and restores the original Microsoft Word shortcut key assignments.

Dictionaries or HangulHanjaConversionDictionaries object: Unloads all of the custom or conversion dictionaries.

Syntax

expression.ClearAll

expression   Required. An expression that returns a TabStops, KeyBindings, Dictionaries, or HangulHanjaConversionDictionaries object.

Remarks

To clear an individual tab stop, use the Clear method of the TabStop object. The ClearAll method doesn't clear the default tab stops. To manipulate the default tab stops, use the DefaultTabStop property for the document.

After applying the ClearAll method to the KeyBindings object, the keys assignments in the specified template or document are reset to the default settings. Use the CustomizationContext property to specify a document or template context prior to using the ClearAll method.

The ClearAll method when used on a Dictionaries or HangulHanjaConversionDictionaries object does not delete the custom or conversion dictionary files. After using this method, the number of custom or conversion dictionaries in the collection is 0 (zero).