'Declaration Public Sub Add( _ ByVal scriptCode As String, _ ByVal fontName As String _ )
public void Add( string scriptCode, string fontName )
Exception | Description |
---|---|
System.ArgumentNullException | Occurs when scriptCode is null. |
System.ArgumentNullException | Occurs when fontName is null. |
System.ArgumentException | Occurs when fontName is the Common script code (Zyyy). |
Note: The Common script code (Zyyy) cannot be mapped because MS Word and the RichTextDocument use the Latin script code (Latn) when getting fonts for characters with a Common script code.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2