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


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

IDisplay.DrawText Method

Draws specified text on the display.

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

Parameters shape [in]
shape is a parameter of type IGeometry Text [in] Text is a parameter of type BSTR

Product Availability

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

Remarks

DrawText draws a text string with the symbol that must be specified before hand with the SetSymbol method. All draw methods must be enclosed between the calls to StartDrawing and FinishDrawing unless you are drawing in response to the IActiveViewEvents::AfterDraw event.

See Also

IDisplay Interface | IDisplay.StartDrawing Method