Description
Apply font with given index to this textrun. If there's no font with given index 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,
	int FontIndex
)
Public Sub ApplyFont ( _
	ParentDoc As Document, _
	FontIndex As Integer _
)
public:
void ApplyFont(
	Document^ ParentDoc, 
	int FontIndex
)

Parameters

ParentDoc
Document
Parent document, containing Font Table
FontIndex
Int32
Index of the font in Font Table to apply

See Also