Export (0) Print
Expand All

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.

Show:
© 2014 Microsoft