ArcGIS Pro 2.9 API Reference Guide
SetDefaultFont(String) Method

ArcGIS.Desktop.Core Namespace > TextAndGraphicsElementsOptions Class > SetDefaultFont Method : SetDefaultFont(String) Method
The font family to set as the default
Sets the application default font family name and style. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void SetDefaultFont( 
   string familyName
)
Public Overloads Sub SetDefaultFont( _
   ByVal familyName As String _
) 

Parameters

familyName
The font family to set as the default
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
font not found
Remarks
The default font style for the given font family will be assigned. Use SetDefaultFont(String,String) to set a specific font style.
If the input font family name does not exist an System.ArgumentException will be thrown
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

TextAndGraphicsElementsOptions Class
TextAndGraphicsElementsOptions Members
Overload List