• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Build has been canceled!

DomCR / ACadSharp / 25257777259

02 May 2026 05:35PM UTC coverage: 76.965% (-0.1%) from 77.076%
25257777259

push

github

web-flow
Merge pull request #1040 from DomCR/issue/1000_tableentity-DwgWriter

TableEntity dwg support

8557 of 12075 branches covered (70.87%)

Branch coverage included in aggregate %.

960 of 1507 new or added lines in 29 files covered. (63.7%)

38 existing lines in 5 files now uncovered.

30799 of 39060 relevant lines covered (78.85%)

152916.22 hits per line

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

87.1
/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
        /// <summary>
21
        /// Gets the table break data that defines how the table should be divided across breaks, including spacing, flow direction,
22
        /// </summary>
23
        public TableBreakData BreakData { get; } = new();
702✔
24

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

31
        /// <summary>
32
        /// Gets or sets a value indicating whether bread data is available.
33
        /// </summary>
34
        public bool HasBreadData { get; set; }
249✔
35

36
        /// <summary>
37
        /// Horizontal direction vector
38
        /// </summary>
39
        [DxfCodeValue(11, 21, 31)]
40
        public XYZ HorizontalDirection { get; set; }
2,734✔
41

42
        /// <inheritdoc/>
43
        public override string ObjectName => DxfFileToken.EntityTable;
2,197✔
44

45
        /// <inheritdoc/>
46
        public override ObjectType ObjectType => ObjectType.UNLISTED;
3✔
47

48
        /// <summary>
49
        /// Flag for an override of border color.
50
        /// </summary>
51
        [DxfCodeValue(94)]
52
        public bool OverrideBorderColor { get; set; }
411✔
53

54
        /// <summary>
55
        /// Flag for an override of border line weight.
56
        /// </summary>
57
        [DxfCodeValue(95)]
58
        public bool OverrideBorderLineWeight { get; set; }
411✔
59

60
        /// <summary>
61
        /// Flag for an override of border visibility.
62
        /// </summary>
63
        [DxfCodeValue(96)]
64
        public bool OverrideBorderVisibility { get; set; }
411✔
65

66
        /// <summary>
67
        /// Flag for an override.
68
        /// </summary>
69
        [DxfCodeValue(93)]
70
        public bool OverrideFlag { get; set; }
411✔
71

72
        /// <summary>
73
        /// Table rows.
74
        /// </summary>
75
        [DxfCodeValue(DxfReferenceType.Count, 91)]
76
        public List<Row> Rows { get { return this.Content.Rows; } }
49,608✔
77

78
        /// <summary>
79
        /// Gets or sets the table style associated with this object.
80
        /// </summary>
81
        [DxfCodeValue(DxfReferenceType.Handle, 342)]
82
        public TableStyle Style
83
        {
84
                get { return this.Content.Style; }
3,420✔
85
                set
86
                {
664✔
87
                        this.Content.Style = value;
664✔
88
                }
664✔
89
        }
90

91
        /// <inheritdoc/>
92
        public override string SubclassMarker => DxfSubclassMarker.TableEntity;
134,334✔
93

94
        /// <summary>
95
        /// Flag for table value.
96
        /// </summary>
97
        [DxfCodeValue(90)]
98
        public int ValueFlag { get; set; }
571✔
99

100
        /// <summary>
101
        /// Table data version
102
        /// </summary>
103
        [DxfCodeValue(280)]
104
        public short Version { get; set; }
207✔
105

106
        internal List<BreakRowRange> BreakRowRanges { get; set; } = new();
828✔
107

108
        internal TableContent Content { get; set; } = new();
34,570✔
109

110
        [DxfCodeValue(DxfReferenceType.Handle, 343)]
NEW
111
        internal BlockRecord TableBlock { get { return this.Block; } }
×
112

113
        /// <inheritdoc/>
114
        public override CadObject Clone()
115
        {
2✔
116
                TableEntity clone = (TableEntity)base.Clone();
2✔
117

118
                return clone;
2✔
119
        }
2✔
120

121
        /// <inheritdoc/>
122
        public override BoundingBox GetBoundingBox()
NEW
123
        {
×
NEW
124
                return BoundingBox.Null;
×
NEW
125
        }
×
126

127
        /// <summary>
128
        /// Retrieves the cell at the specified row and column indices.
129
        /// </summary>
130
        /// <param name="row">The zero-based index of the row containing the cell to retrieve.</param>
131
        /// <param name="column">The zero-based index of the column containing the cell to retrieve.</param>
132
        /// <returns>The cell located at the specified row and column.</returns>
133
        public Cell GetCell(int row, int column)
134
        {
38✔
135
                return this.Rows[row].Cells[column];
38✔
136
        }
38✔
137
}
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