ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / ISymbolFactory Interface / ConstructTextSymbol Method / ConstructTextSymbol(CIMPolygonSymbol,Double,String) Method
ArcGIS.Core.CIM.CIMPolygonSymbol
The size of the text symbol to construct.
The font family name of the text symbol to construct.

In This Topic
    ConstructTextSymbol(CIMPolygonSymbol,Double,String) Method
    In This Topic
    Constructs a default text symbol given its polygon symbol, size, and font family name. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Overloads Function ConstructTextSymbol( _
       ByVal symbol As CIMPolygonSymbol, _
       ByVal size As Double, _
       ByVal fontFamilyName As String _
    ) As CIMTextSymbol

    Parameters

    symbol
    ArcGIS.Core.CIM.CIMPolygonSymbol
    size
    The size of the text symbol to construct.
    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 font style for the font family will be assigned.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also