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


IDataGraphBase.DrawToDC Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > ID > IDataGraphBase Interface > IDataGraphBase.DrawToDC Method
ArcGIS Developer Help

IDataGraphBase.DrawToDC Method

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(
  OLE_HANDLE hDC,
  tagRECT* pOutputRect,
  tagRECT* pGraphRect
);
[C++]
Parameters
hDC [in]

hDC is a parameter of type OLE_HANDLE pOutputRect [in]
pOutputRect is a parameter of type tagRECT* pGraphRect [in]
pGraphRect is a parameter of type tagRECT*

Product Availability

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

Remarks

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.

See Also

IDataGraphBase Interface