FastReport

Форк
0
/
TableStyleCollection.cs 
42 строки · 972.0 Байт
1
using System;
2
using System.Collections.Generic;
3
using System.Text;
4
using FastReport.Utils;
5

6
namespace FastReport.Table
7
{
8
    internal class TableStyleCollection : FRCollectionBase
9
    {
10
        private TableCell defaultStyle;
11

12
        public TableCell DefaultStyle
13
        {
14
            get { return defaultStyle; }
15
        }
16

17
        public TableCell this[int index]
18
        {
19
            get { return List[index] as TableCell; }
20
            set { List[index] = value; }
21
        }
22

23
        public TableCell Add(TableCell style)
24
        {
25
            for (int i = 0; i < Count; i++)
26
            {
27
                if (this[i].Equals(style))
28
                    return this[i];
29
            }
30

31
            TableCell newStyle = new TableCell();
32
            newStyle.Assign(style);
33
            List.Add(newStyle);
34
            return newStyle;
35
        }
36

37
        public TableStyleCollection() : base(null)
38
        {
39
            defaultStyle = new TableCell();
40
        }
41
    }
42
}
43

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.