//create a new workbook var workbook = new GrapeCity.Documents.Excel.Workbook(); IWorksheet worksheet = workbook.Worksheets[0]; //Add tag for worksheet worksheet.Tag = "This is a Tag for sheet."; //Add tag for range A1:B2 worksheet.Range["A1:B2"].Tag = "This is a Tag for A1:B2"; //Add tag for row 4 worksheet.Range["A4"].EntireRow.Tag = "This is a Tag for Row 4"; //Add tag for column F worksheet.Range["F5"].EntireColumn.Tag = "This is a Tag for Column F";
' Create a new Workbook Dim workbook As New Workbook Dim worksheet As IWorksheet = workbook.Worksheets(0) ' Add tag for worksheet worksheet.Tag = "This is a Tag for sheet." ' Add tag for range A1:B2 worksheet.Range("A1:B2").Tag = "This is a Tag for A1:B2" ' Add tag for row 4 worksheet.Range!A4.EntireRow.Tag = "This is a Tag for Row 4" ' Add tag for column F worksheet.Range!F5.EntireColumn.Tag = "This is a Tag for Column F" ' Note: ' If you are using Visual Basic, when setting a boxed value type to the Tag property, ' a copy of the value will be assigned.