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

DomCR / ACadSharp / 18815746545

26 Oct 2025 09:03AM UTC coverage: 78.067% (+0.1%) from 77.923%
18815746545

Pull #831

github

web-flow
Merge 56937c619 into f84cb1d2a
Pull Request #831: Table entity refactor

7324 of 10163 branches covered (72.07%)

Branch coverage included in aggregate %.

733 of 863 new or added lines in 17 files covered. (84.94%)

15 existing lines in 4 files now uncovered.

27305 of 34195 relevant lines covered (79.85%)

107176.01 hits per line

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

82.76
/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
                /// <summary>
22
                /// Table columns
23
                /// </summary>
24
                [DxfCodeValue(DxfReferenceType.Count, 92)]
25
                public List<Column> Columns { get { return this.Content.Columns; } }
36,702✔
26

27
                /// <summary>
28
                /// Horizontal direction vector
29
                /// </summary>
30
                [DxfCodeValue(11, 21, 31)]
31
                public XYZ HorizontalDirection { get; set; }
2,999✔
32

33
                /// <inheritdoc/>
34
                public override string ObjectName => DxfFileToken.EntityTable;
1,357✔
35

36
                /// <inheritdoc/>
37
                public override ObjectType ObjectType => ObjectType.UNLISTED;
1✔
38

39
                /// <summary>
40
                /// Flag for an override of border color.
41
                /// </summary>
42
                [DxfCodeValue(94)]
43
                public bool OverrideBorderColor { get; set; }
485✔
44

45
                /// <summary>
46
                /// Flag for an override of border line weight.
47
                /// </summary>
48
                [DxfCodeValue(95)]
49
                public bool OverrideBorderLineWeight { get; set; }
485✔
50

51
                /// <summary>
52
                /// Flag for an override of border visibility.
53
                /// </summary>
54
                [DxfCodeValue(96)]
55
                public bool OverrideBorderVisibility { get; set; }
485✔
56

57
                /// <summary>
58
                /// Flag for an override.
59
                /// </summary>
60
                [DxfCodeValue(93)]
61
                public bool OverrideFlag { get; set; }
485✔
62

63
                /// <summary>
64
                /// Table rows.
65
                /// </summary>
66
                [DxfCodeValue(DxfReferenceType.Count, 91)]
67
                public List<Row> Rows { get { return this.Content.Rows; } }
39,402✔
68

69
                /// <summary>
70
                /// Gets or sets the table style associated with this object.
71
                /// </summary>
72
                [DxfCodeValue(DxfReferenceType.Handle, 342)]
73
                public TableStyle Style
74
                {
NEW
75
                        get { return this.Content.Style; }
×
76
                        set
NEW
77
                        {
×
NEW
78
                                this.Content.Style = value;
×
NEW
79
                        }
×
80
                }
81

82
                /// <inheritdoc/>
83
                public override string SubclassMarker => DxfSubclassMarker.TableEntity;
164,441✔
84

85
                /// <summary>
86
                /// Flag for table value.
87
                /// </summary>
88
                [DxfCodeValue(90)]
89
                public int ValueFlag { get; set; }
485✔
90

91
                /// <summary>
92
                /// Table data version
93
                /// </summary>
94
                [DxfCodeValue(280)]
95
                public short Version { get; set; }
245✔
96

97
                internal List<BreakRowRange> BreakRowRanges { get; set; } = new();
866✔
98

99
                internal TableContent Content { get; set; } = new();
26,234✔
100

101
                //343        Hard pointer ID of the owning BLOCK record
102
                [DxfCodeValue(DxfReferenceType.Handle, 343)]
103
                [Obsolete("Is it needed??")]
104
                internal BlockRecord TableBlock { get { return this.Block; } }
×
105

106
                internal BreakData TableBreakData { get; set; } = new();
752✔
107

108
                /// <inheritdoc/>
109
                public override CadObject Clone()
110
                {
3✔
111
                        return base.Clone();
3✔
112
                }
3✔
113

114
                /// <inheritdoc/>
115
                public override BoundingBox GetBoundingBox()
116
                {
1✔
117
                        return BoundingBox.Null;
1✔
118
                }
1✔
119

120
                public Cell GetCell(int row, int column)
121
                {
18✔
122
                        return this.Rows[row].Cells[column];
18✔
123
                }
18✔
124
        }
125
}
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