This document is archived and information here might be outdated.  Recommended version.


IDynamicSymbolProperties2.GetTextSize Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Interfaces > ID > IDynamicSymbolProperties2 Interface > IDynamicSymbolProperties2.GetTextSize Method
ArcGIS Developer Help

IDynamicSymbolProperties2.GetTextSize Method

The text size in pixel screen coordinates.

[Visual Basic .NET]
Public Sub GetTextSize ( _
    ByVal Text As String, _
    ByRef sizeX As Single&, _
    ByRef sizeY As Single& _
)
[C#]
public void GetTextSize (
    string Text,
    ref Single& sizeX,
    ref Single& sizeY
);
[C++]
HRESULT GetTextSize(
  BSTR Text,
  System.Single* sizeX,
  System.Single* sizeY
);
[C++]
Parameters
Text [in]

Text is a parameter of type BSTR sizeX [in, out]
sizeX is a parameter of type single* sizeY [in, out]
sizeY is a parameter of type single*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

Returns the size of a given text, according to the current state of the internal Dynamic Symbols.

See Also

IDynamicSymbolProperties2 Interface