C#如何得到spreadsheetcontrol控件中指定单元格的坐标 10
1个回答
2017-05-08
展开全部
创建一个新文档添加一个显示"Hello, World!"文本的单元格.
using DevExpress.Spreadsheet;
spreadsheetControl1.CreateNewDocument();
spreadsheetControl1.BeginUpdate();
Range range = spreadsheetControl1.Document.Range["A1:C5"];//A1:C5要填充的位置。
range.Merge();
range.FillColor = DevExpress.Utils.DXColor.Beige;
range.Value = "Hello, World!";
range.Alignment.Horizontal = SpreadsheetHorizontalAlignment.Center;
range.Alignment.Vertical = SpreadsheetVerticalAlignment.Center;
spreadsheetControl1.EndUpdate();
using DevExpress.Spreadsheet;
spreadsheetControl1.CreateNewDocument();
spreadsheetControl1.BeginUpdate();
Range range = spreadsheetControl1.Document.Range["A1:C5"];//A1:C5要填充的位置。
range.Merge();
range.FillColor = DevExpress.Utils.DXColor.Beige;
range.Value = "Hello, World!";
range.Alignment.Horizontal = SpreadsheetHorizontalAlignment.Center;
range.Alignment.Vertical = SpreadsheetVerticalAlignment.Center;
spreadsheetControl1.EndUpdate();
追问
我要的是单元格的坐标,例D7的坐标。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |