## GetAncestor(*Type*) {#getancestor_1} يحصل على السلف الأول لنوع الكائن المحدد. ```csharp public CompositeNode GetAncestor(Type ancestorType) ``` | معامل | يكتب | وصف | | --- | --- | --- | | ances......Document(MyDir + "Nested tables.docx"); NodeCollection tables = doc.GetChildNodes(NodeType...GetChildNodes(NodeType.Table, true); for (int i = 0; i < tables.Count; i++)...