Northwoods.Go Assembly > Northwoods.Go Namespace > GoText Class : DoEdit Method |
This is normally called from the control that is setting a new string for this text object as a result of the user having finished editing the text. By default it just sets this object's Text property to the result of a call to ComputeEdit: Text = ComputeEdit(oldtext, newtext)
. You can override this method to prevent the text value from being set, or you can override ComputeEdit to constrain the new text value. If you intend to bring up a message box or other focus-taking activity, call GoView.GoView.DoCancelMouse first, to make sure no tool is started if the user had clicked elsewhere in the view.
Call DoBeginEdit to programmatically have the user start editing this text object; call DoEndEdit to stop any editing that the user might be doing. However, you should not be calling either of those methods from an override of this method.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2