private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TableSpread));
this.fpSpread = new FarPoint.Win.Spread.FpSpread(FarPoint.Win.Spread.LegacyBehaviors.None); //, resources.GetObject("resource1"));
this.fpSpreadSheet = new SheetView(); // this.fpSpread.GetSheet(0);
this.splitContainer = new System.Windows.Forms.SplitContainer();
this.tableLayout = new TableLayoutPanel();
this.trackBar = new System.Windows.Forms.TrackBar();
this.prevLabel = new System.Windows.Forms.Label();
this.nextLabel = new System.Windows.Forms.Label();
this.showLabel = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.fpSpread)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.fpSpreadSheet)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.splitContainer)).BeginInit();
this.splitContainer.SuspendLayout();
this.splitContainer.Panel1.SuspendLayout();
this.splitContainer.Panel2.SuspendLayout();
this.tableLayout.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.trackBar)).BeginInit();
this.SuspendLayout();
this.fpSpread.AccessibleDescription = "Book1, Sheet1, Row 0, Column 0";
this.fpSpread.BackColor = System.Drawing.Color.Transparent;
this.fpSpread.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.fpSpread.Dock = System.Windows.Forms.DockStyle.Fill;
this.fpSpread.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.fpSpread.Location = new System.Drawing.Point(0, 0);
this.fpSpread.Name = "fpSpread";
//this.fpSpread.ScrollBarMaxAlign = false;
this.fpSpread.ScrollBarTrackPolicy = FarPoint.Win.Spread.ScrollBarTrackPolicy.Both;
this.fpSpread.ScrollTipPolicy = FarPoint.Win.Spread.ScrollTipPolicy.Both;
this.fpSpread.Sheets.Add(this.fpSpreadSheet);
this.fpSpread.ActiveSheet = this.fpSpreadSheet;
////this.fpSpread.Sheets.AddRange(new FarPoint.Win.Spread.SheetView[] {
////this.fpSpreadSheet});
////this.fpSpread.Size = new System.Drawing.Size(1455, 973);
this.fpSpread.AutoSize = true;
this.fpSpread.StatusBarVisible = false;
this.fpSpread.TabIndex = 0;
this.fpSpread.TabStripPolicy = FarPoint.Win.Spread.TabStripPolicy.AsNeeded;
this.fpSpread.VerticalScrollBarPolicy = FarPoint.Win.Spread.ScrollBarPolicy.AsNeeded;
this.fpSpread.HorizontalScrollBarPolicy = FarPoint.Win.Spread.ScrollBarPolicy.AsNeeded;
this.fpSpreadSheet.Reset();
this.fpSpreadSheet.SheetName = "Sheet1";
this.fpSpreadSheet.GrayAreaBackColor = System.Drawing.Color.Transparent;
this.fpSpreadSheet.OperationMode = FarPoint.Win.Spread.OperationMode.ExtendedSelect; // 禁用左上角全选
this.fpSpreadSheet.RowHeader.DefaultStyle.BackColor = System.Drawing.Color.Empty;
this.fpSpreadSheet.RowHeader.DefaultStyle.ForeColor = System.Drawing.Color.Red;
this.fpSpreadSheet.RowHeader.DefaultStyle.Locked = false;
this.fpSpreadSheet.SelectionPolicy = FarPoint.Win.Spread.Model.SelectionPolicy.MultiRange;
this.fpSpreadSheet.SelectionUnit = FarPoint.Win.Spread.Model.SelectionUnit.Row;
this.fpSpreadSheet.FrozenColumnCount = 0;
} |