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

IEditProperties.StretchGeometry Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IE > IEditProperties Interface > IEditProperties.StretchGeometry Property
ArcGIS Developer Help

IEditProperties.StretchGeometry Property

Indicates if the edit sketch is stretched when one of its vertices is moved.

[Visual Basic .NET]
Public Property StretchGeometry As Boolean
public bool StretchGeometry {get; set;}

Product Availability

Available with ArcGIS Desktop.


This property determines whether or not the edit sketch is stretched proportionally when a vertex is moved. The following diagrams illustrate this point better. In both cases, the upper right vertex was moved.

Moving a vertex with StretchGeometry set to True:

Moving a vertex with StrechGeometry set to False:


/// This routine toggles the Stretch Geometry proportional property based on the current setting. /// This setting is available on the Editing Options General tab. ///  
public void ToggleStretchGeometry() 
//get editor extension
UID editorUID = new UIDClass();    editorUID.Value = "esriEditor.Editor";    
IEditor editor = m_application.FindExtensionByCLSID(editorUID) as IEditor; IEditProperties editProperties = editor as IEditProperties;
//switch the setting on or off based on the previous value    
editProperties.StretchGeometry = (!editProperties.StretchGeometry);

See Also

IEditProperties Interface