ClearAll Method
Applies To
Dictionaries collection object, KeyBindings collection object, TabStops collection object.
Description
TabStops object: Clears all the custom tab stops from the specified paragraphs.
KeyBindings object: Clears all the customized key assignments and restores the original Word shortcut key assignments.
Dictionaries object: Unloads all of the custom dictionaries.
Syntax
expression.ClearAll
expression Required. An expression that returns a TabStops, KeyBindings, or Dictionaries 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 the Dictionaries object does not delete the custom dictionary files. After using this method, the number of custom dictionaries in the collection is 0 (zero).
See Also
Clear method, DefaultTabStop property.
Example
This example clears all the custom tab stops in the active document.
ActiveDocument.Paragraphs.TabStops.ClearAll
This example clears the customized key assignments in the Normal template. The key assignments are reset to the default settings.
CustomizationContext = NormalTemplate
KeyBindings.ClearAll
This example unloads all of the custom dictionaries.
CustomDictionaries.ClearAll