■ 시트 코너에 커스텀 셀 타입 할당을 통한 텍스트를 표시하는 방법을 보여준다.
▶ 예제 코드 (C#)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
using FarPoint.Win.Spread; using FarPoint.Win.Spread.CellType; /// <summary> /// 커스텀 셀 타입 /// </summary> public class CustomCellType : GeneralCellType { public override void PaintCell(Graphics graphics, Rectangle rectangle, Appearance appearance, object value, bool isSelected, bool isLocked, float zoomFactor) { base.PaintCell(graphics, rectangle, appearance, "Text", isSelected, isLocked, zoomFactor); } } ... CustomCellType customCellType = new CustomCellType(); fpSpread1.Sheets[0].SheetCornerStyle.CellType = customCellType; |