• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

DomCR / ACadSharp / 20297070459

17 Dec 2025 08:53AM UTC coverage: 77.112% (-0.6%) from 77.723%
20297070459

push

github

web-flow
Merge pull request #921 from DomCR/read-table-R2007Pre

Read table r2007 pre

7690 of 10817 branches covered (71.09%)

Branch coverage included in aggregate %.

187 of 513 new or added lines in 9 files covered. (36.45%)

22 existing lines in 7 files now uncovered.

28309 of 35867 relevant lines covered (78.93%)

159788.76 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

68.97
/src/ACadSharp/Entities/TableEntity.cs
1
using ACadSharp.Attributes;
2
using ACadSharp.Objects;
3
using ACadSharp.Tables;
4
using CSMath;
5
using System;
6
using System.Collections.Generic;
7

8
namespace ACadSharp.Entities
9
{
10
        /// <summary>
11
        /// Represents a <see cref="TableEntity"/> entity.
12
        /// </summary>
13
        /// <remarks>
14
        /// Object name <see cref="DxfFileToken.EntityTable"/> <br/>
15
        /// Dxf class name <see cref="DxfSubclassMarker.TableEntity"/>
16
        /// </remarks>
17
        [DxfName(DxfFileToken.EntityTable)]
18
        [DxfSubClass(DxfSubclassMarker.TableEntity)]
19
        public partial class TableEntity : Insert
20
        {
21
                [Flags]
22
                internal enum BorderOverrideFlags
23
                {
24
                        None = 0,
25
                        TitleHorizontalTop = 0x01,
26
                        TitleHorizontalInsert = 0x02,
27
                        TitleHorizontalBottom = 0x04,
28
                        TitleVerticalLeft = 0x8,
29
                        TitleVerticalInsert = 0x10,
30
                        TitleVerticalRight = 0x20,
31
                        HeaderHorizontalTop = 0x40,
32
                        HeaderHorizontalInsert = 0x80,
33
                        HeaderHorizontalBottom = 0x100,
34
                        HeaderVerticalLeft = 0x200,
35
                        HeaderVerticalInsert = 0x400,
36
                        HeaderVerticalRight = 0x800,
37
                        DataHorizontalTop = 0x1000,
38
                        DataHorizontalInsert = 0x2000,
39
                        DataHorizontalBottom = 0x4000,
40
                        DataVerticalLeft = 0x8000,
41
                        DataVerticalInsert = 0x10000,
42
                        DataVerticalRight = 0x20000,
43
                }
44

45
                [Flags]
46
                internal enum TableOverrideFlags
47
                {
48
                        None = 0,
49
                        TitleSuppressed = 0x0001,
50
                        HeaderSuppressed = 0x02,
51
                        FlowDirection = 0x0004,
52
                        HorizontalCellMargin = 0x0008,
53
                        VerticalCellMargin = 0x0010,
54

55
                        TitleRowColor = 0x0020,
56
                        HeaderRowColor = 0x00040,
57
                        DataRowColor = 0x0080,
58

59
                        TitleRowFillNone = 0x0100,
60
                        HeaderRowFillNone = 0x0200,
61
                        DataRowFillNone = 0x0400,
62

63
                        TitleRowFillColor = 0x0800,
64
                        HeaderRowFillColor = 0x1000,
65
                        DataRowFillColor = 0x2000,
66

67
                        TitleRowAlign = 0x4000,
68
                        HeaderRowAlign = 0x8000,
69
                        DataRowAlign = 0x10000,
70

71
                        TitleTextStyle = 0x20000,
72
                        HeaderTextStyle = 0x40000,
73
                        DataTextStyle = 0x80000,
74

75
                        TitleRowHeight = 0x100000,
76
                        HeaderRowHeight = 0x200000,
77
                        DataRowHeight = 0x400000,
78
                }
79

80
                /// <summary>
81
                /// Table columns
82
                /// </summary>
83
                [DxfCodeValue(DxfReferenceType.Count, 92)]
84
                public List<Column> Columns { get { return this.Content.Columns; } }
50,442✔
85

86
                /// <summary>
87
                /// Horizontal direction vector
88
                /// </summary>
89
                [DxfCodeValue(11, 21, 31)]
90
                public XYZ HorizontalDirection { get; set; }
3,149✔
91

92
                /// <inheritdoc/>
93
                public override string ObjectName => DxfFileToken.EntityTable;
2,606✔
94

95
                /// <inheritdoc/>
96
                public override ObjectType ObjectType => ObjectType.UNLISTED;
×
97

98
                /// <summary>
99
                /// Flag for an override of border color.
100
                /// </summary>
101
                [DxfCodeValue(94)]
102
                public bool OverrideBorderColor { get; set; }
483✔
103

104
                /// <summary>
105
                /// Flag for an override of border line weight.
106
                /// </summary>
107
                [DxfCodeValue(95)]
108
                public bool OverrideBorderLineWeight { get; set; }
483✔
109

110
                /// <summary>
111
                /// Flag for an override of border visibility.
112
                /// </summary>
113
                [DxfCodeValue(96)]
114
                public bool OverrideBorderVisibility { get; set; }
483✔
115

116
                /// <summary>
117
                /// Flag for an override.
118
                /// </summary>
119
                [DxfCodeValue(93)]
120
                public bool OverrideFlag { get; set; }
483✔
121

122
                /// <summary>
123
                /// Table rows.
124
                /// </summary>
125
                [DxfCodeValue(DxfReferenceType.Count, 91)]
126
                public List<Row> Rows { get { return this.Content.Rows; } }
54,312✔
127

128
                /// <summary>
129
                /// Gets or sets the table style associated with this object.
130
                /// </summary>
131
                [DxfCodeValue(DxfReferenceType.Handle, 342)]
132
                public TableStyle Style
133
                {
134
                        get { return this.Content.Style; }
×
135
                        set
136
                        {
×
137
                                this.Content.Style = value;
×
138
                        }
×
139
                }
140

141
                /// <inheritdoc/>
142
                public override string SubclassMarker => DxfSubclassMarker.TableEntity;
158,040✔
143

144
                /// <summary>
145
                /// Flag for table value.
146
                /// </summary>
147
                [DxfCodeValue(90)]
148
                public int ValueFlag { get; set; }
635✔
149

150
                /// <summary>
151
                /// Table data version
152
                /// </summary>
153
                [DxfCodeValue(280)]
154
                public short Version { get; set; }
243✔
155

156
                internal List<BreakRowRange> BreakRowRanges { get; set; } = new();
863✔
157

158
                internal TableContent Content { get; set; } = new();
35,857✔
159

160
                [DxfCodeValue(DxfReferenceType.Handle, 343)]
UNCOV
161
                internal BlockRecord TableBlock { get { return this.Block; } }
×
162

163
                internal BreakData TableBreakData { get; set; } = new();
749✔
164

165
                /// <inheritdoc/>
166
                public override CadObject Clone()
167
                {
2✔
168
                        return base.Clone();
2✔
169
                }
2✔
170

171
                /// <inheritdoc/>
172
                public override BoundingBox GetBoundingBox()
173
                {
×
174
                        return BoundingBox.Null;
×
175
                }
×
176

177
                public Cell GetCell(int row, int column)
178
                {
38✔
179
                        return this.Rows[row].Cells[column];
38✔
180
                }
38✔
181
        }
182
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc