如何定制表角SheetCorner
问题描述:如何操作表单表角的行列数、样式以及文本等信息。问题解答:可以通过SheetView 下属性SheetCorner 来操作表角。
关键代码:
fpSpread1.ActiveSheet.SheetCorner.DefaultStyle.Renderer = new FarPoint.Win.Spread.CellType.CornerRenderer();
fpSpread1.ActiveSheet.AllowTableCorner = true;
fpSpread1.ActiveSheet.SheetCorner.RowCount = 6;
fpSpread1.ActiveSheet.SheetCorner.ColumnCount = 6;
fpSpread1.ActiveSheet.SheetCorner.AlternatingRows.BackColor = Color.Violet;
fpSpread1.ActiveSheet.SheetCorner.Cells.Text = "测试";
fpSpread1.ActiveSheet.SheetCorner.Columns.Border = new FarPoint.Win.LineBorder(Color.Green);
fpSpread1.ActiveSheet.SheetCorner.Rows.Border = new FarPoint.Win.LineBorder(Color.Green);
fpSpread1.ActiveSheet.SheetCorner.HorizontalGridLine = new FarPoint.Win.Spread.GridLine(FarPoint.Win.Spread.GridLineType.None);
fpSpread1.ActiveSheet.SheetCorner.VerticalGridLine = new FarPoint.Win.Spread.GridLine(FarPoint.Win.Spread.GridLineType.None);
fpSpread1.ActiveSheet.SheetCorner.DefaultStyle.VisualStyles = FarPoint.Win.VisualStyles.Off;
效果截图:
示例下载:点击下载 WinForms如何禁用点击表角进行全选??? onroader 发表于 2016-7-7 08:50
WinForms如何禁用点击表角进行全选???
在点击事件中取消操作即可。
页:
[1]