/// <summary> /// Gets the name of the currently active sheet /// </summary> /// <returns></returns> public string CurrentActiveSheet() { using (var sheet = new DrawingSheet((Sheet)mBaseObject.GetCurrentSheet(), this)) { return(sheet.SheetName); } }
public void ForEachSheet(Action <DrawingSheet> sheetsCallback) { // Get each sheet name var sheetNames = SheetNames(); // Get all sheet names foreach (var sheetName in sheetNames) { // Get instance of sheet using (var sheet = new DrawingSheet(mBaseObject.Sheet[sheetName], this)) { // Callback sheetsCallback(sheet); } } }