public ChartTitleFormatRecord(RecordInputStream in1) { m_recs = in1.ReadUShort(); int idx; CTFormat ctf; if (m_formats == null) { m_formats = new ArrayList(m_recs); } for (idx = 0; idx < m_recs; idx++) { ctf = new CTFormat(in1.ReadShort(), in1.ReadShort()); m_formats.Add(ctf); } }
public ChartTitleFormatRecord(RecordInputStream in1) { m_recs = in1.ReadUShort(); int idx; CTFormat ctf; if (m_formats == null) { m_formats = new ArrayList(m_recs); } for (idx = 0; idx < m_recs; idx++) { ctf = new CTFormat(in1.ReadShort(), in1.ReadShort()); m_formats.Add(ctf); } }
public AlRunsRecord(RecordInputStream in1) { m_recs = in1.ReadUShort(); int idx; CTFormat ctf; if (m_formats == null) { m_formats = new List <object>(m_recs); } for (idx = 0; idx < m_recs; idx++) { ctf = new CTFormat(in1.ReadShort(), in1.ReadShort()); m_formats.Add(ctf); } }
public void ModifyFormatRun(short oldPos, short newLen) { short shift = (short)0; for (int idx = 0; idx < m_formats.Count; idx++) { CTFormat ctf = (CTFormat)m_formats[idx]; if (shift != 0) { ctf.Offset = ((short)(ctf.Offset + shift)); } else if ((oldPos == ctf.Offset) && (idx < (m_formats.Count - 1))) { CTFormat nextCTF = (CTFormat)m_formats[idx + 1]; shift = (short)(newLen - (nextCTF.Offset - ctf.Offset)); } } }