This document is archived and information here might be outdated. Recommended version. |
Current Z value for the edit sketch.
[Visual Basic .NET]
Public Property CurrentZ As Double
[C#]
public double CurrentZ {get; set;}
The following example displays the Z value of the current vertex using C#.
public void EditSketch2()
{
UID editorUid = new UIDClass();
editorUid.Value = "esriEditor.Editor";
//You can get app from ICommand :: OnCreate() hook parameter
IEditSketch2 editSketch = app.FindExtensionByCLSID(editorUid) as IEditSketch2;
System.Windows.Forms.MessageBox.Show(editSketch.CurrentZ.ToString());
}
The following example displays the Z value of the current vertex using VBNet.
Public Sub EditSketch2()
Dim editorUid As UID = New UIDClass()
editorUid.Value = "esriEditor.Editor"
'You can get app from ICommand :: OnCreate() hook parameter
Dim editSketch As IEditSketch2 = TryCast(app.FindExtensionByCLSID(editorUid), IEditSketch2)
System.Windows.Forms.MessageBox.Show(editSketch.CurrentZ.ToString())
End Sub