CodeCarvings.Piczard
FromFont Method
See Also  Send Feedback
CodeCarvings.Piczard Namespace > FontDefinition Class : FromFont Method

font
The Font object containing the parameters (size, family, style, etc..) to be copied.
Initializes a new instance of the FontDefinition class from a Font object.

Syntax

Visual Basic (Declaration)  
Public Shared Function FromFont( _
   ByVal font As Font _
) As FontDefinition
C#  
public static FontDefinition FromFont( 
   Font font
)

Parameters

font
The Font object containing the parameters (size, family, style, etc..) to be copied.

Return Value

The instance of the FontDefinition class.

Requirements

Platforms: Windows 8, Windows 7, Windows Vista, Windows XP Professional, Windows 2000 - Windows Server family: 2012, 2008.R2, 2008, 2003, 2000

See Also

©2013 Sergio Turolla. All Rights Reserved.