This documentation is archived and is not being maintained.

Selection.CopyFormat Method

Copies the character formatting of the first character in the selected text.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

void CopyFormat()

If a paragraph mark is selected, Microsoft Word copies paragraph formatting in addition to character formatting.

You can apply the copied formatting to another selection by using the PasteFormat method.