Beispiel #1
0
 internal DocumentObject method_7(Spire.Doc.Documents.DocumentObjectType A_0)
 {
     for (DocumentObject obj2 = this.ParentObject; obj2 != null; obj2 = obj2.ParentObject)
     {
         if (obj2.DocumentObjectType == A_0)
         {
             return(obj2);
         }
     }
     return(null);
 }
        private List <ShapeObject> method_35(Spire.Doc.Documents.DocumentObjectType A_0)
        {
            List <ShapeObject> list = new List <ShapeObject>();

            foreach (DocumentObject obj2 in this.ChildObjects)
            {
                if (obj2.DocumentObjectType == A_0)
                {
                    list.Add((ShapeObject)obj2);
                }
            }
            return(list);
        }
Beispiel #3
0
        internal virtual List <DocumentObject> GetChildElements(Spire.Doc.Documents.DocumentObjectType type, bool isDeep)
        {
            List <DocumentObject> list = new List <DocumentObject>();

            foreach (DocumentObject obj2 in this.ChildObjects)
            {
                if (obj2.DocumentObjectType == type)
                {
                    list.Add(obj2);
                }
                else if (isDeep)
                {
                    list.AddRange(obj2.GetChildElements(type, isDeep));
                }
            }
            return(list);
        }