GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoText Class / ComputeEdit Method
In This Topic
    ComputeEdit Method
    In This Topic
    Calculate a new string value for this object as a result of an edit.
    Syntax
    public virtual string ComputeEdit( 
       string oldtext,
       string newtext
    )

    Parameters

    oldtext
    newtext

    Return Value

    Normally, this just returns newtext.
    Remarks
    This is normally called from DoEdit, and can be used for normalizing or canonicalizing the new string value, even when not interactively editing (i.e. no GoView is not available). One typical usage is to make sure the new value is a unique string within some context such as the document.
    See Also