DioDocs for PDF
ResolveFontName メソッド

GrapeCity.Documents.Imaging アセンブリ > GrapeCity.Documents.Text 名前空間 > TextFormat クラス : ResolveFontName メソッド
The IFontCollection to search the font from. If this parameter is omitted the font is searched in FontCollection.SystemFonts only.
Indicates whether or not the font should be searched in the given fontCollection only. If False, the font is also searched in FontCollection.SystemFonts.
The default font returned if font with specified name not found, if this parameter is null then fontCollection.DefaultFont or FontCollection.SystemFonts.DefaultFont is used.
Returns the Font object for the current settings in the FontName, FontBold, FontItalic properties. Note that if the FontName is specified (not empty), this method will return the same font that would be used by a TextLayout given the same settings.
シンタックス
'宣言
 
Public Function ResolveFontName( _
   Optional ByVal fontCollection As IFontCollection, _
   Optional ByVal restrictedFontLookup As System.Boolean, _
   Optional ByVal defaultFont As Font _
) As Font
public Font ResolveFontName( 
   IFontCollection fontCollection,
   System.bool restrictedFontLookup,
   Font defaultFont
)

パラメータ

fontCollection
The IFontCollection to search the font from. If this parameter is omitted the font is searched in FontCollection.SystemFonts only.
restrictedFontLookup
Indicates whether or not the font should be searched in the given fontCollection only. If False, the font is also searched in FontCollection.SystemFonts.
defaultFont
The default font returned if font with specified name not found, if this parameter is null then fontCollection.DefaultFont or FontCollection.SystemFonts.DefaultFont is used.

戻り値の型

The Font object corresponding to FontName and font style in the current instance of TextFormat.
参照

TextFormat クラス
TextFormat メンバ