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


IEngineEditSketch.Part Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Controls)  

IEngineEditSketch.Part Property

The index of the current part of the sketch.

[Visual Basic .NET]
Public ReadOnly Property Part As Integer
[C#]
public int Part {get;}
[C++]
HRESULT get_Part(
  long* Part
);
[C++]

Parameters Part [out, retval] Part is a parameter of type long

Product Availability

Available with ArcGIS Engine.

Description

This property stores the index of the part of a sketch as specified by the IEngineEditSketch::SetEditLocation method. Once the index has been stored in this property, it remains there until the next time you call the IEngineEditSketch::SetEditLocation method.
Use this property when creating custom commands in a context menu that require the specific sketch part.
The IEngineEditSketch::SetEditLocation could be called during the IMapControlEvents2::OnMouseUp event to store the index of the part of a sketch which the user had clicked on.

See Also

IEngineEditSketch Interface