using Microsoft.Office.Interop.Excel;
Range rng = worksheet.UsedRange;
// I found below code but I didn’t found ref to both ExcelAlignemt and excel I i missing something which ref required for this
rng.VerticalAlignment = ExcelAlignment.xlButtom; //or Excel.XlHAlign.xlHAlignLeft
xlHAlignCenter is in Excel namespace:
Now, with your code: