اكتشف منشئ FindReplaceOptions لتتمكن من تهيئة مثيل جديد بسهولة باستخدام الإعدادات الافتراضية، مما يعزز وظيفة البحث والاستبدال لديك....doc = new Document ( MyDir + "Header and footer types.docx" ); Section...Range . Replace ( new Regex ( "(header|footer)" ), "" , options );...