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

DomCR / ACadSharp / 24892111562

24 Apr 2026 01:29PM UTC coverage: 76.823% (-0.3%) from 77.074%
24892111562

Pull #1040

github

web-flow
Merge 2602ac62c into d573f1f62
Pull Request #1040: TableEntity dwg support

8479 of 11987 branches covered (70.73%)

Branch coverage included in aggregate %.

594 of 1121 new or added lines in 18 files covered. (52.99%)

42 existing lines in 4 files now uncovered.

30521 of 38779 relevant lines covered (78.7%)

152398.97 hits per line

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

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

7
namespace ACadSharp.Entities;
8

9
/// <summary>
10
/// Represents a <see cref="TableEntity"/> entity.
11
/// </summary>
12
/// <remarks>
13
/// Object name <see cref="DxfFileToken.EntityTable"/> <br/>
14
/// Dxf class name <see cref="DxfSubclassMarker.TableEntity"/>
15
/// </remarks>
16
[DxfName(DxfFileToken.EntityTable)]
17
[DxfSubClass(DxfSubclassMarker.TableEntity)]
18
public partial class TableEntity : Insert
19
{
20
        public TableBreakData BreakData { get; } = new();
691✔
21

22
        /// <summary>
23
        /// Gets the collection of columns in the table entity.
24
        /// </summary>
25
        [DxfCodeValue(DxfReferenceType.Count, 92)]
26
        public List<Column> Columns { get { return this.Content.Columns; } }
45,942✔
27

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

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

37
        /// <inheritdoc/>
NEW
38
        public override ObjectType ObjectType => ObjectType.UNLISTED;
×
39

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

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

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

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

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

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

83
        /// <inheritdoc/>
84
        public override string SubclassMarker => DxfSubclassMarker.TableEntity;
134,334✔
85

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

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

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

100
        internal TableContent Content { get; set; } = new();
32,730✔
101

102
        [DxfCodeValue(DxfReferenceType.Handle, 343)]
NEW
103
        internal BlockRecord TableBlock { get { return this.Block; } }
×
104

105
        /// <inheritdoc/>
106
        public override CadObject Clone()
107
        {
2✔
108
                TableEntity clone = (TableEntity)base.Clone();
2✔
109

110
                return clone;
2✔
111
        }
2✔
112

113
        /// <inheritdoc/>
114
        public override BoundingBox GetBoundingBox()
NEW
115
        {
×
NEW
116
                return BoundingBox.Null;
×
NEW
117
        }
×
118

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