public void SetDefaultFont( string familyName )
Public Overloads Sub SetDefaultFont( _ ByVal familyName As String _ )
Parameters
- familyName
- The font family to set as the default
public void SetDefaultFont( string familyName )
Public Overloads Sub SetDefaultFont( _ ByVal familyName As String _ )
Exception | Description |
---|---|
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
System.ArgumentException | font not found |
//Must use QueuedTask.Run(...) var def_font = SymbolFactory.Instance.DefaultFont; System.Diagnostics.Debug.WriteLine($"{def_font.fontName}, styles: {def_font.styleName}"); //set default font - set through application options //Must use QueuedTask ApplicationOptions.TextAndGraphicsElementsOptions.SetDefaultFont("tahoma"); ApplicationOptions.TextAndGraphicsElementsOptions.SetDefaultFont("tahoma","bold");
Target Platforms: Windows 11, Windows 10