Personalizzazione del file Ribbon XML
Contents
[
Hide
]
Microsoft Office ha sostituito i menu e le barre degli strumenti con un Ribbon nella parte superiore della finestra dell’applicazione a partire dall’ufficio 2007. Il Ribbon è personalizzabile. Aspose.Cells ti consente di
- Mantenere il Ribbon XML senza analizzarlo,
- Leggere e scrivere Ribbon XML senza analizzarlo,
- Ottenere e impostare i dati del Ribbon XML.
Se si desidera modificare il Ribbon XML, è necessario analizzarlo con un analizzatore XML o altro strumento 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(); |