Other API Samples Orientation SpreadsheetGear API SampleRange Samples Formatting and Other Cell Features OrientationDescriptionSet text orientation.Sample Source Code// Open file containing sample data and create some local variables. SpreadsheetGear.IWorkbook workbook = SpreadsheetGear.Factory.GetWorkbook( @"Files\OrientationSampleData.xlsx"); SpreadsheetGear.IWorksheet worksheet = workbook.ActiveWorksheet; SpreadsheetGear.IRange cells = worksheet.Cells; // Get a reference to the range whose text orientation will be changed. SpreadsheetGear.IRange range = cells["D2:W2"]; // Set the text orientation for a better fit. range.Orientation = 65;