تخصيص الشريط XML
Contents
[
Hide
]
قام Microsoft Office باستبدال القوائم وأشرطة الأدوات بشريط في الجزء العلوي من نافذة التطبيق منذ Office 2007. الشريط قابل للتخصيص. Aspose.Cells يسمح لك
- احتفظ بـ Ribbon XML دون تحليله ،
- قراءة وكتابة Ribbon XML دون تحليلها ،
- الحصول على بيانات XML الشريطية وتعيينها.
إذا كنت تريد تغيير Ribbon XML ، فيجب عليك تحليله باستخدام محلل XML أو أداة Ribbon XML أخرى.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
// The path to the documents directory. | |
string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | |
Workbook wb = new Workbook(dataDir+ "aspose-sample.xlsx"); | |
FileInfo fi = new FileInfo(dataDir+ "CustomUI.xml"); | |
StreamReader sr = fi.OpenText(); | |
wb.RibbonXml = sr.ReadToEnd(); | |
sr.Close(); |