文檔半島外圍網(wǎng)上直營>>Spread Studio for .NET使用教程>>Spread Studio for .NET使用教程:使用活動(dòng)工作表
Spread Studio for .NET使用教程:使用活動(dòng)工作表
活動(dòng)工作表是指當(dāng)前接收用戶交互性指示的工作表。你可以使用FpSpread對(duì)象的ActiveSheet屬性以編程方式指定活動(dòng)工作表。您還可以使用ActiveSheetIndex對(duì)象指定活動(dòng)工作表的索引。
通常,活動(dòng)工作表顯示在其它工作表之上。
》》》免費(fèi)下載Spread Studio for .NET最新版
使用快捷方式:
在指定工作表屬性時(shí),你可以使用ActiveSheet作為活動(dòng)工作表的快捷對(duì)象。
示例:
設(shè)置活動(dòng)工作表的屬性,并將它分配到第二個(gè)工作表。
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