原創|使用教程|編輯:郝浩|2013-05-28 17:49:51.000|閱讀 286 次
概述:活動工作表是指當前接收用戶交互性指示的工作表。你可以使用FpSpread對象的ActiveSheet屬性以編程方式指定活動工作表。您可以使用ActiveSheetIndex對象指定活動工作表的索引。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關鏈接:
活動工作表是指當前接收用戶交互性指示的工作表。你可以使用FpSpread對象的ActiveSheet屬性以編程方式指定活動工作表。您還可以使用ActiveSheetIndex對象指定活動工作表的索引。
通常,活動工作表顯示在其它工作表之上。
》》》免費下載Spread Studio for .NET最新版
在指定工作表屬性時,你可以使用ActiveSheet作為活動工作表的快捷對象。
示例:
設置活動工作表的屬性,并將它分配到第二個工作表。
C#
// Allow three sheets in the component. fpSpread1.Sheets.Count = 3; // Set third sheet (in zero-based index) be set to active sheet. fpSpread1.ActiveSheetIndex = 2; // Set some properties of the active sheet. fpSpread1.ActiveSheet.ColumnCount = 8; fpSpread1.InterfaceRenderer = NULL; fpSpread1.ActiveSheet.GrayAreaBackColor = Color.Purple;VB
' Allow three sheets in the component. FpSpread1.Sheets.Count = 3 ' Set third sheet (in zero-based index) be set to active sheet. FpSpread1.ActiveSheetIndex = 2 ' Set some properties of the active sheet. FpSpread1.ActiveSheet.ColumnCount = 8 FpSpread1.InterfaceRenderer = Nothing FpSpread1.ActiveSheet.GrayAreaBackColor = Color.Purple
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn
文章轉載自:慧都控件網