FastReport
42 строки · 972.0 Байт
1using System;2using System.Collections.Generic;3using System.Text;4using FastReport.Utils;5
6namespace FastReport.Table7{
8internal class TableStyleCollection : FRCollectionBase9{10private TableCell defaultStyle;11
12public TableCell DefaultStyle13{14get { return defaultStyle; }15}16
17public TableCell this[int index]18{19get { return List[index] as TableCell; }20set { List[index] = value; }21}22
23public TableCell Add(TableCell style)24{25for (int i = 0; i < Count; i++)26{27if (this[i].Equals(style))28return this[i];29}30
31TableCell newStyle = new TableCell();32newStyle.Assign(style);33List.Add(newStyle);34return newStyle;35}36
37public TableStyleCollection() : base(null)38{39defaultStyle = new TableCell();40}41}42}
43