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


IHatchTemplate.DrawPreview Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Location > ESRI.ArcGIS.Location > Interfaces > IH > IHatchTemplate Interface > IHatchTemplate.DrawPreview Method
ArcGIS Developer Help

IHatchTemplate.DrawPreview Method

Draws a sample of hatching to a given display.

[Visual Basic .NET]
Public Sub DrawPreview ( _
    ByVal Geometry As IGeometry, _
    ByVal scaleFactor As Double, _
    ByVal selectedDef As Integer, _
    ByVal FromMeasure As Object, _
    ByVal ToMeasure As Object, _
    ByVal LateralOffset As Object, _
    ByVal measureUnits As esriUnits, _
    ByVal display As IDisplay, _
    ByVal trackCancel As ITrackCancel _
)
[C#]
public void DrawPreview (
    IGeometry Geometry,
    double scaleFactor,
    int selectedDef,
    object FromMeasure,
    object ToMeasure,
    object LateralOffset,
    esriUnits measureUnits,
    IDisplay display,
    ITrackCancel trackCancel
);
[C++]
HRESULT DrawPreview(
  IGeometry* Geometry,
  double scaleFactor,
  Long selectedDef,
  VARIANT FromMeasure,
  VARIANT ToMeasure,
  VARIANT LateralOffset,
  esriUnits measureUnits,
  IDisplay* display,
  ITrackCancel* trackCancel
);
[C++]
Parameters
Geometry [in]

Geometry is a parameter of type IGeometry* scaleFactor [in]
scaleFactor is a parameter of type double selectedDef [in]
selectedDef is a parameter of type int FromMeasure [in]
FromMeasure is a parameter of type VARIANT ToMeasure [in]
ToMeasure is a parameter of type VARIANT LateralOffset [in]
LateralOffset is a parameter of type VARIANT measureUnits [in]
measureUnits is a parameter of type esriUnits display [in]
display is a parameter of type IDisplay* trackCancel [in]
trackCancel is a parameter of type ITrackCancel*

Product Availability

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

See Also

IHatchTemplate Interface