我理解你的意思。不过这里不能设置字体,可以设置前景色和背景色。参加如下代码。
- FpSpread1.Sheets.Count = 3;
- FpSpread1.Tab.ActiveTabBackColor = Color.Yellow;
- FpSpread1.Tab.ActiveTabBorderColor = Color.Red;
- FpSpread1.Tab.FirstVisibleTab = 1;
- FpSpread1.Tab[0] = "First";
- FpSpread1.Tab[1] = "Second";
- FpSpread1.Tab[2] = "Third";
- FpSpread1.Tab.TextColor = Color.Red;
- FpSpread1.Tab.TabControlPolicy = FarPoint.Web.Spread.TabControlPolicy.Always;
- FpSpread1.Tab.VisibleCount = 2;
- FpSpread1.Tab.ScrollIncrement = 2;
- ListBox1.Items.Add(FpSpread1.Tab.Count.ToString());
复制代码 |