Click or drag to resize
TextDocumentGetPreferredFont Method
(TOM 2 only) Retrieves the preferred font for a particular character repertoire and character position.

Namespace: TextObjectModel
Assembly: ManagedTOM2 (in ManagedTOM2.dll) Version: 1.0.5577.41188
Syntax
public PreferredFontInfo GetPreferredFont(
	int index,
	CharRepertoire rep,
	PreferredFontFlags options,
	CharRepertoire curRep,
	int curFontSize
)

Parameters

index
Type: SystemInt32
The character position for the preferred font.
rep
Type: TextObjectModelCharRepertoire
The character repertoire index for the preferred font.
options
Type: TextObjectModelPreferredFontFlags
The preferred font options.
curRep
Type: TextObjectModelCharRepertoire
The index of the current character repertoire.
curFontSize
Type: SystemInt32
The current font size.

Return Value

Type: PreferredFontInfo
A PreferredFontInfo object containing information about the font.
Exceptions
ExceptionCondition
NotSupportedException The underlying COM object does not implement the ITextDocument2 interface.
See Also