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

DomCR / ACadSharp / 19269943512

11 Nov 2025 03:11PM UTC coverage: 78.156% (+0.2%) from 78.002%
19269943512

push

github

web-flow
Merge pull request #831 from DomCR/table-entity-refactor

Table entity refactor

7383 of 10235 branches covered (72.13%)

Branch coverage included in aggregate %.

731 of 859 new or added lines in 16 files covered. (85.1%)

14 existing lines in 4 files now uncovered.

27606 of 34533 relevant lines covered (79.94%)

98649.31 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
        [Obsolete("TableEntity is in a work in progress")]
20
        public partial class TableEntity : Insert
21
        {
22
                /// <summary>
23
                /// Table columns
24
                /// </summary>
25
                [DxfCodeValue(DxfReferenceType.Count, 92)]
26
                public List<Column> Columns { get { return this.Content.Columns; } }
36,702✔
27

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

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

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

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

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

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

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

64
                /// <summary>
65
                /// Table rows.
66
                /// </summary>
67
                [DxfCodeValue(DxfReferenceType.Count, 91)]
68
                public List<Row> Rows { get { return this.Content.Rows; } }
39,402✔
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
NEW
78
                        {
×
NEW
79
                                this.Content.Style = value;
×
NEW
80
                        }
×
81
                }
82

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

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

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

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

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

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

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

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

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

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