Initializes a new instance of the Font class with the specified custom font file, size and unit of measure.
Namespace:
Neodynamic.WebControls.ImageDrawAssembly: Neodynamic.WebControls.ImageDraw (in Neodynamic.WebControls.ImageDraw.dll)
Version: 4.0.2000.0 (4.0.2000.0)
Syntax
C# |
---|
public Font( string customFontFile, int customFontFileFamilyIndex, float size, FontUnit unit ) |
Visual Basic (Declaration) |
---|
Public Sub New ( _ customFontFile As String, _ customFontFileFamilyIndex As Integer, _ size As Single, _ unit As FontUnit _ ) |
Visual C++ |
---|
public: Font( String^ customFontFile, int customFontFileFamilyIndex, float size, FontUnit unit ) |
Parameters
- customFontFile
- Type: System..::.String
The custom font file to use. It can be specified as a relative URL or full path pointing out to the custom font file on local disk or; as an identifier stored in the appSettings section of Web.config file.
- customFontFileFamilyIndex
- Type: System..::.Int32
The Font Family index of the type faces defined by the specified Custom Font File.
- size
- Type: System..::.Single
The size of the font measured in Points.
- unit
- Type: Neodynamic.WebControls.ImageDraw..::.FontUnit
The unit of measure for the font.