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)

Syntax

'Declaration
Sub CopyFormat
'Usage
Dim instance As Selection

instance.CopyFormat()
void CopyFormat()

Remarks

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.

See Also

Reference

Selection Interface

Selection Members

Microsoft.Office.Interop.Word Namespace