internal bool NotifyChanging(object sender, XObjectChangeEventArgs e)
        {
            bool    flag   = false;
            XObject parent = this;

            while (true)
            {
                while ((parent != null) && (parent.annotations == null))
                {
                    parent = parent.parent;
                }
                if (parent == null)
                {
                    return(flag);
                }
                XObjectChangeAnnotation annotation = parent.Annotation <XObjectChangeAnnotation>();
                if (annotation != null)
                {
                    flag = true;
                    if (annotation.changing != null)
                    {
                        annotation.changing(sender, e);
                    }
                }
                parent = parent.parent;
            }
        }
        internal SaveOptions GetSaveOptionsFromAnnotations()
        {
            XObject parent = this;

            while (true)
            {
                while ((parent != null) && (parent.annotations == null))
                {
                    parent = parent.parent;
                }
                if (parent == null)
                {
                    return(SaveOptions.None);
                }
                object obj3 = parent.Annotation(typeof(SaveOptions));
                if (obj3 != null)
                {
                    return((SaveOptions)obj3);
                }
                parent = parent.parent;
            }
        }