| TextDocumentGetPreferredFont Method |
(TOM 2 only)
Retrieves the preferred font for a particular character repertoire and character position.
Namespace: TextObjectModelAssembly: ManagedTOM2 (in ManagedTOM2.dll) Version: 1.0.5577.41188
Syntax public PreferredFontInfo GetPreferredFont(
int index,
CharRepertoire rep,
PreferredFontFlags options,
CharRepertoire curRep,
int curFontSize
)
Public Function GetPreferredFont (
index As Integer,
rep As CharRepertoire,
options As PreferredFontFlags,
curRep As CharRepertoire,
curFontSize As Integer
) As PreferredFontInfo
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:
PreferredFontInfoA
PreferredFontInfo object containing information about the font.
Exceptions Exception | Condition |
---|
NotSupportedException |
The underlying COM object does not implement the ITextDocument2 interface.
|
See Also