![]() |
This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Interfaces > IT > ITextBackground Interface > ITextBackground.Draw Method (ArcObjects .NET 10.5 SDK) |
Draws the text background.
[Visual Basic .NET] Public Sub Draw ( _ ByVal hDC As Integer, _ ByVal transform As ITransformation _ )
[C#] public void Draw ( int hDC, ITransformation transform );
[C++]
HRESULT Draw(
long hDC,
ITransformation* transform
);
[C++]
Parameters hDC [in] hDC is a parameter of type long transform [in]
transform is a parameter of type ITransformation
The Draw method is used in a similar way to the ISymbol::Draw method. Note that ISymbol::Draw called on a TextSymbol coclass will also call ITextBackground::Draw, if a Background is set, thus drawing both the background and the text. Note that there is no Geometry required in this method; the location and size of the TextBackground is determined by the TextSymbol.