Код: Выделить всё
Here is my code:
public void FormatTest()
{
Request request = new()
{
UpdateBorders = new()
{
Range = new()
{
SheetId = 0,
StartRowIndex = 3,
EndRowIndex = 3,
StartColumnIndex = 0,
EndColumnIndex = 5
},
Bottom = new()
{
Color = new()
{
Blue = 1
},
Style = "DASHED",
Width = 1
},
InnerHorizontal = new()
{
Color = new()
{
Blue = 1
},
Style = "DASHED",
Width = 1
}
}
};
var batchRequest = new BatchUpdateSpreadsheetRequest()
{
Requests = [request]
};
var update = service.Spreadsheets.BatchUpdate(batchRequest, ScheduleSheetId);
var response = update.Execute();
}
Подробнее здесь: https://stackoverflow.com/questions/792 ... ia-c-sharp
Мобильная версия