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


IDynamicSymbolProperties2.GetTextSize Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Display)  

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,
  float* sizeX,
  float* sizeY
);
[C++]

Parameters Text [in] Text is a parameter of type BSTR sizeX [in, out] sizeX is a parameter of type float sizeY [in, out] sizeY is a parameter of type float

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