Description
Apply font with given name to this textrun. If there's no font with given name in Font Table of this document, the default font will be used.

Namespace: Docs.Word
Assembly: Docs.Word (in Docs.Word.dll) Version: 2.3.0.0 (2.3)

Syntax

         
 C#  Visual Basic  Visual C++ 
public void ApplyFont(
	Document ParentDoc,
	string FontName
)
Public Sub ApplyFont ( _
	ParentDoc As Document, _
	FontName As String _
)
public:
void ApplyFont(
	Document^ ParentDoc, 
	String^ FontName
)

Parameters

ParentDoc
Document
Parent document, containing Font Table
FontName
String
Name of the font to apply

See Also