Stetic.Wrapper.ActionGroupCollection.FindObjectByUndoId C# (CSharp) Method

FindObjectByUndoId() private method

private FindObjectByUndoId ( string id ) : ObjectWrapper
id string
return ObjectWrapper
        internal ObjectWrapper FindObjectByUndoId(string id)
        {
            foreach (ActionGroup ag in List) {
                ObjectWrapper ow = ag.FindObjectByUndoId (id);
                if (ow != null)
                    return ow;
            }
            return null;
        }

Usage Example

Example #1
0
        public override ObjectWrapper FindObjectByUndoId(string id)
        {
            ObjectWrapper c = base.FindObjectByUndoId(id);

            if (c != null)
            {
                return(c);
            }

            if (actionGroups != null)
            {
                return(actionGroups.FindObjectByUndoId(id));
            }
            else
            {
                return(null);
            }
        }