ArcGIS Pro 2.9 API Reference Guide
ConstructTextSymbol(String) Method

ArcGIS.Desktop.Mapping Namespace > SymbolFactory Class > ConstructTextSymbol Method : ConstructTextSymbol(String) Method
The font family name of the text symbol to construct.
Constructs a default text symbol given its font family name. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public CIMTextSymbol ConstructTextSymbol( 
   string fontFamilyName
)
Public Overloads Function ConstructTextSymbol( _
   ByVal fontFamilyName As String _
) As CIMTextSymbol

Parameters

fontFamilyName
The font family name of the text symbol to construct.

Return Value

Exceptions
ExceptionDescription
This method must be called within the lambda passed to QueuedTask.Run
Remarks
If the font family is null or does not exist the current default font family will be assigned. The default color, size, and font style are assigned.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

SymbolFactory Class
SymbolFactory Members
Overload List