예제 #1
0
        public void TestLoad()
        {

            DefaultTextRecord record = new DefaultTextRecord(TestcaseRecordInputStream.Create((short)0x1024, data));
            Assert.AreEqual(2, (int)record.FormatType);
            Assert.AreEqual(6, record.RecordSize);
        }
예제 #2
0
        public override Object Clone()
        {
            DefaultTextRecord rec = new DefaultTextRecord();

            rec.field_1_categoryDataType = field_1_categoryDataType;
            return(rec);
        }
예제 #3
0
        public void TestStore()
        {
            DefaultTextRecord record = new DefaultTextRecord();
            record.FormatType = (TextFormatInfo)2;


            byte[] recordBytes = record.Serialize();
            Assert.AreEqual(recordBytes.Length - 4, data.Length);
            for (int i = 0; i < data.Length; i++)
                Assert.AreEqual(data[i], recordBytes[i + 4], "At offset " + i);
        }
예제 #4
0
        public DFTTextAggregate(RecordStream rs, ChartRecordAggregate container)
            : base(RuleName_DFTTEXT, container)
        {
            if (rs.PeekNextChartSid() == DataLabExtRecord.sid)
            {
                dataLabExt = (DataLabExtRecord)rs.GetNext();
                startObject = (ChartStartObjectRecord)rs.GetNext();
            }
            defaultText = (DefaultTextRecord)rs.GetNext();
            attachedLabel = new AttachedLabelAggregate(rs, this);

            if (startObject != null)
                endObject = (ChartEndObjectRecord)rs.GetNext();
        }
예제 #5
0
        public override Object Clone()
        {
            DefaultTextRecord rec = new DefaultTextRecord();

            rec.field_1_categoryDataType = field_1_categoryDataType;
            return rec;
        }
예제 #6
0
파일: HSSFChart.cs 프로젝트: 89sos98/npoi
 private DefaultTextRecord CreateDefaultTextRecord(short categoryDataType)
 {
     DefaultTextRecord r = new DefaultTextRecord();
     r.FormatType = (TextFormatInfo)(categoryDataType);
     return r;
 }
예제 #7
0
파일: InternalChart.cs 프로젝트: WPG/npoi
 private static DefaultTextRecord CreateDefaultTextRecord()
 {
     DefaultTextRecord r = new DefaultTextRecord();
     r.FormatType = TextFormatInfo.FontScaleNotSet;
     return r;
 }