CodeCarvings.Piczard
ValidateName(String,Boolean) Method
See Also  Send Feedback
CodeCarvings.Piczard Namespace > FontDefinition Class > ValidateName Method : ValidateName(String,Boolean) Method

name
The string to validate.
throwException
If true, an exception is thrown if the string is not valid.
Determines if the provided string is a well-formatted font family Name; if the "throwException" parameter is true then an Exception is thrown if the string is not valid.

Syntax

Visual Basic (Declaration)  
Public Overloads Shared Function ValidateName( _
   ByVal name As String, _
   ByVal throwException As Boolean _
) As Boolean
C#  
public static bool ValidateName( 
   string name,
   bool throwException
)

Parameters

name
The string to validate.
throwException
If true, an exception is thrown if the string is not valid.

Return Value

true if the string is a well-formatted font family name; otherwise, false.

Exceptions

Exception Description
System.Exception The provided string is not a well-formatted font family name.

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.