This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > ID > IDataGraphBase Interface > IDataGraphBase.DrawToDC Method (ArcObjects .NET 10.5 SDK) |
Draws the data graph into the provided device context.
[Visual Basic .NET] Public Sub DrawToDC ( _ ByVal hDC As Integer, _ ByRef pOutputRect As tagRECT, _ ByRef pGraphRect As tagRECT _ )
[C#] public void DrawToDC ( int hDC, ref tagRECT pOutputRect, ref tagRECT pGraphRect );
[C++]
HRESULT DrawToDC(
long hDC,
tagRECT* pOutputRect,
tagRECT* pGraphRect
);
[C++]
Parameters hDC [in] hDC is a parameter of type long pOutputRect [in]
pOutputRect is a parameter of type tagRECT pGraphRect [in]
pGraphRect is a parameter of type tagRECT
There are three parameters. They are hdc, pOutputRect, and pGraphRect. hdc means handle device context, it is used for graph drawing. pOutputRect coordinates the rectangle in device context for graph drawing. pGraphRect is the rectangle that represents the size of the graph drawn in device context. The dimension of output rectangle is usually the same as graph rectangle.