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

DomCR / ACadSharp / 18721371977

22 Oct 2025 03:27PM UTC coverage: 78.088% (+0.2%) from 77.923%
18721371977

Pull #831

github

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

7267 of 10095 branches covered (71.99%)

Branch coverage included in aggregate %.

619 of 718 new or added lines in 15 files covered. (86.21%)

3 existing lines in 2 files now uncovered.

27220 of 34069 relevant lines covered (79.9%)

107569.4 hits per line

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

80.0
/src/ACadSharp/Entities/TableEntity.Cell.cs
1
using ACadSharp.Attributes;
2
using System;
3
using System.Collections.Generic;
4
using System.Linq;
5

6
namespace ACadSharp.Entities
7
{
8
        public partial class TableEntity
9
        {
10
                public class Cell
11
                {
12
                        /// <summary>
13
                        /// Boolean flag indicating if the auto fit option is set for the cell.
14
                        /// </summary>
15
                        [DxfCodeValue(174)]
16
                        public bool AutoFit { get; set; }
9,840✔
17

18
                        /// <summary>
19
                        /// Cell border height.
20
                        /// </summary>
21
                        /// <remarks>
22
                        /// Applicable only for merged cells.
23
                        /// </remarks>
24
                        [DxfCodeValue(176)]
25
                        public int BorderHeight { get; set; }
9,840✔
26

27
                        /// <summary>
28
                        /// Cell border width.
29
                        /// </summary>
30
                        /// <remarks>
31
                        /// Applicable only for merged cells.
32
                        /// </remarks>
33
                        [DxfCodeValue(175)]
34
                        public int BorderWidth { get; set; }
9,840✔
35

36
                        public CellContent Content
37
                        {
38
                                get
39
                                {
9✔
40
                                        if (this.Contents == null || this.HasMultipleContent)
9!
NEW
41
                                        {
×
NEW
42
                                                return null;
×
43
                                        }
44
                                        else
45
                                        {
9✔
46
                                                return this.Contents.FirstOrDefault();
9✔
47
                                        }
48
                                }
9✔
49
                        }
50

51
                        public List<CellContent> Contents { get; } = new();
27,170✔
52

53
                        [DxfCodeValue(91)]
54
                        public int CustomData { get; set; }
15,257✔
55

56
                        public List<CustomDataEntry> CustomDataCollection { get; set; } = new();
20,841✔
57

58
                        /// <summary>
59
                        /// Cell flag value.
60
                        /// </summary>
61
                        [DxfCodeValue(172)]
62
                        public int FlagValue { get; set; }
9,840✔
63

64
                        public CellContentGeometry Geometry { get; set; }
3,990✔
65

66
                        [DxfCodeValue(92)]
67
                        public bool HasLinkedData { get; set; }
11,666✔
68

69
                        public bool HasMultipleContent
70
                        {
71
                                get
72
                                {
18✔
73
                                        if (this.Contents == null)
18!
74
                                        {
×
75
                                                return false;
×
76
                                        }
77

78
                                        return this.Contents.Count > 1;
18✔
79
                                }
18✔
80
                        }
81

82
                        /// <summary>
83
                        /// Cell merged value.
84
                        /// </summary>
85
                        [DxfCodeValue(173)]
86
                        public int MergedValue { get; set; }
9,840✔
87

88
                        /// <summary>
89
                        /// Rotation value.
90
                        /// </summary>
91
                        /// <remarks>
92
                        /// Applicable for a block-type cell and a text-type cell.
93
                        /// </remarks>
94
                        [DxfCodeValue(145)]
95
                        public double Rotation { get; set; }
9,840✔
96

97
                        [DxfCodeValue(90)]
98
                        public TableCellStateFlags StateFlags { get; set; }
15,105✔
99

100
                        public CellStyle StyleOverride { get; set; } = new();
35,050✔
101

102
                        [DxfCodeValue(300)]
103
                        public string ToolTip { get; set; }
8,721✔
104

105
                        /// <summary>
106
                        /// Cell type.
107
                        /// </summary>
108
                        [DxfCodeValue(171)]
109
                        public CellType Type { get; set; }
9,840✔
110

111
                        /// <summary>
112
                        /// Flag value for a virtual edge.
113
                        /// </summary>
114
                        [DxfCodeValue(178)]
115
                        public short VirtualEdgeFlag { get; set; }
9,840✔
116
                }
117
        }
118
}
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