예제 #1
0
 private IList TestData()
 {
     IList records = new ArrayList();
     FormulaRecord formulaRecord = new FormulaRecord();
     //UnknownRecord unknownRecord = new UnknownRecord();
     BlankRecord blankRecord = new BlankRecord();
     WindowOneRecord windowOneRecord = new WindowOneRecord();
     formulaRecord.Row = 1;
     formulaRecord.Column = 1;
     blankRecord.Row = 2;
     blankRecord.Column = 2;
     records.Add(formulaRecord);
     records.Add(blankRecord);
     records.Add(windowOneRecord);
     return records;
 }
예제 #2
0
        /**
         * Creates the WindowOne record with the following magic values: 
         * horizontal hold - 0x168 
         * vertical hold   - 0x10e 
         * width           - 0x3a5c 
         * height          - 0x23be 
         * options         - 0x38 
         * selected tab    - 0 
         * Displayed tab   - 0 
         * num selected tab- 0 
         * tab width ratio - 0x258 
         * @see org.apache.poi.hssf.record.WindowOneRecord
         * @see org.apache.poi.hssf.record.Record
         * @return record containing a WindowOneRecord
         */

        private static Record CreateWindowOne()
        {
            WindowOneRecord retval = new WindowOneRecord();

            retval.HorizontalHold=(short)0x168;
            retval.VerticalHold=(short)0x10e;
            retval.Width=(short)0x3a5c;
            retval.Height=(short)0x23be;
            retval.Options=(short)0x38;
            retval.ActiveSheetIndex=(short)0x0;
            retval.FirstVisibleTab = (short)0x0;
            retval.NumSelectedTabs=(short)1;
            retval.TabWidthRatio=(short)0x258;
            return retval;
        }
예제 #3
0
파일: Workbook.cs 프로젝트: Henry-T/UnityPG
        /**
         * Creates the WindowOne record with the following magic values: 
         * horizontal hold - 0x168 
         * vertical hold   - 0x10e 
         * width           - 0x3a5c 
         * height          - 0x23be 
         * options         - 0x38 
         * selected tab    - 0 
         * Displayed tab   - 0 
         * num selected tab- 0 
         * tab width ratio - 0x258 
         * @see org.apache.poi.hssf.record.WindowOneRecord
         * @see org.apache.poi.hssf.record.Record
         * @return record containing a WindowOneRecord
         */

        protected Record CreateWindowOne()
        {
            WindowOneRecord retval = new WindowOneRecord();

            retval.HorizontalHold=(short)0x168;
            retval.VerticalHold=(short)0x10e;
            retval.Width=(short)0x3a5c;
            retval.Height=(short)0x23be;
            retval.Options=(short)0x38;
            retval.SelectedTab=(short)0x0;
            retval.DisplayedTab=(short)0x0;
            retval.NumSelectedTabs=(short)1;
            retval.TabWidthRatio=(short)0x258;
            return retval;
        }