fpSpread1.Sheets.Count = 3;
#region 인터페이스 렌더링 객체를 정의한다.
FarPoint.Win.Spread.EnhancedInterfaceRenderer interfaceRenderer = new FarPoint.Win.Spread.EnhancedInterfaceRenderer();
interfaceRenderer.ArrowColorDisabled = Color.Green;
interfaceRenderer.ArrowColorEnabled = Color.LightSeaGreen;
interfaceRenderer.ScrollBoxBackgroundColor = Color.Aqua;
interfaceRenderer.TabShape = FarPoint.Win.Spread.EnhancedInterfaceRenderer.SheetTabShape.RoundedRectangle;
interfaceRenderer.TabStripButtonStyle = FarPoint.Win.Spread.EnhancedInterfaceRenderer.ButtonStyles.Enhanced;
interfaceRenderer.TabStripButtonFlatStyle = FlatStyle.Popup;
interfaceRenderer.SheetTabBorderColor = Color.Aquamarine;
interfaceRenderer.SheetTabLowerActiveColor = Color.DarkSeaGreen;
interfaceRenderer.SheetTabLowerNormalColor = Color.DarkOliveGreen;
interfaceRenderer.SheetTabUpperActiveColor = Color.ForestGreen;
interfaceRenderer.SheetTabUpperNormalColor = Color.LightSeaGreen;
interfaceRenderer.SplitBarBackgroundColor = Color.Aquamarine;
interfaceRenderer.SplitBarDarkColor = Color.DarkGreen;
interfaceRenderer.SplitBarLightColor = Color.LightGreen;
interfaceRenderer.SplitBoxBackgroundColor = Color.Green;
interfaceRenderer.SplitBoxBorderColor = Color.LimeGreen;
interfaceRenderer.TabStripBackgroundColor = Color.Aquamarine;
#endregion
#region 스크롤 바 렌더링 객체를 정의한다.
FarPoint.Win.Spread.EnhancedScrollBarRenderer scrollBarRenderer = new FarPoint.Win.Spread.EnhancedScrollBarRenderer
(
Color.Green,
Color.LightGreen,
Color.Green,
Color.Aqua,
Color.DarkGreen,
Color.DarkSeaGreen,
Color.Turquoise,
Color.SpringGreen,
Color.Teal,
Color.PaleGreen,
Color.ForestGreen
);
#endregion
#region 포커스 지시자 렌더링 객체를 정의한다.
FarPoint.Win.Spread.MarqueeFocusIndicatorRenderer focusIndicatorRenderer = new FarPoint.Win.Spread.MarqueeFocusIndicatorRenderer(Color.LightSeaGreen, 2);
#endregion
#region 선택 렌더링 객체를 정의한다.
FarPoint.Win.Spread.GradientSelectionRenderer selectionRenderer = new FarPoint.Win.Spread.GradientSelectionRenderer();
selectionRenderer.Color1 = Color.Green;
selectionRenderer.Color2 = Color.LightGreen;
selectionRenderer.Opacity = 50;
#endregion
#region 디폴트 스타일을 정의한다.
FarPoint.Win.Spread.StyleInfo defaultStyleInfo = new FarPoint.Win.Spread.StyleInfo();
defaultStyleInfo.BackColor = Color.Honeydew;
FarPoint.Win.Spread.NamedStyle defaultStyle = new FarPoint.Win.Spread.NamedStyle("Default", "DataAreaDefault", defaultStyleInfo);
#endregion
#region 컬럼 헤더 디폴트 스타일을 정의한다.
FarPoint.Win.Spread.StyleInfo columnHeaderDefaultStyleInfo = new FarPoint.Win.Spread.StyleInfo();
columnHeaderDefaultStyleInfo.BackColor = Color.LightGreen;
FarPoint.Win.Spread.NamedStyle columnHeaderDefaultStyle = new FarPoint.Win.Spread.NamedStyle("ColumnHeaders", "HeaderDefault", columnHeaderDefaultStyleInfo);
#endregion
#region 행 헤더 디폴트 스타일을 정의한다.
FarPoint.Win.Spread.StyleInfo rowHeaderDefaultStyleInfo = new FarPoint.Win.Spread.StyleInfo();
rowHeaderDefaultStyleInfo.BackColor = Color.LightGreen;
FarPoint.Win.Spread.NamedStyle rowHeaderDefaultStyle = new FarPoint.Win.Spread.NamedStyle("RowHeaders", "HeaderDefault", rowHeaderDefaultStyleInfo);
#endregion
#region 코너 디폴트 스타일을 정의한다.
FarPoint.Win.Spread.StyleInfo cornerDefaultStyleInfo = new FarPoint.Win.Spread.StyleInfo();
cornerDefaultStyleInfo.BackColor = Color.LightGreen;
FarPoint.Win.Spread.NamedStyle cornerDefaultStyle = new FarPoint.Win.Spread.NamedStyle("CornerHeaders", "HeaderDefault", cornerDefaultStyleInfo);
#endregion
FarPoint.Win.Spread.SpreadSkin spreadSkin = new FarPoint.Win.Spread.SpreadSkin
(
"MySkin",
interfaceRenderer,
scrollBarRenderer,
focusIndicatorRenderer,
selectionRenderer,
defaultStyle,
columnHeaderDefaultStyle,
rowHeaderDefaultStyle,
cornerDefaultStyle
);
spreadSkin.Apply(fpSpread1);