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


IDynamicDisplay.DrawText Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Display)  

IDynamicDisplay.DrawText Method

Draws text at the specified point on the dynamic display.

[Visual Basic .NET]
Public Sub DrawText ( _
    ByVal Point As IPoint, _
    ByVal Text As String _
)
[C#]
public void DrawText (
    IPoint Point,
    string Text
);
[C++]
HRESULT DrawText(
  IPoint* Point,
  BSTR Text
);
[C++]

Parameters Point [in]
Point is a parameter of type IPoint Text [in] Text is a parameter of type BSTR

Product Availability

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

Remarks

The text will be rendered according to the current Dynamic Text Symbol attributes, as described in esriDynamicSymbolType constants.

Using the Dynamic Text Symbol, you can set the text to have a text box that will use the Dynamic Fill Symbol for Background fill, and the Dynamic Line Symbol for outline. Please refer to IDynamicSymbolProperties2.TextBoxUseDynamicFillSymbol and IDynamicSymbolProperties2.TextBoxUseDynamicLineSymbol boolean properties.

See Also

IDynamicDisplay Interface

.NET Samples

Dynamic biking (Code Files: DynamicBikingCmd)