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


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

IDynamicDrawScreen.DrawScreenText Method

Draws text at the specified point on the screen.

[Visual Basic .NET]
Public Sub DrawScreenText ( _
    ByVal Point As IPoint, _
    ByVal Text As String _
)
[C#]
public void DrawScreenText (
    IPoint Point,
    string Text
);
[C++]
HRESULT DrawScreenText(
  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 DynamicTextSymbol attributes.

Using the DynamicTextSymbol, you can set the text to have a text box that will use the DynamicFillSymbol for Background fill, and the DynamicLineSymbol for outline. Please refer to IDynamicSymbolProperties2.TextBoxUseDynamicFillSymbol and IDynamicSymbolProperties2.TextBoxUseDynamicLineSymbol boolean properties.

See Also

IDynamicDrawScreen Interface