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

DomCR / ACadSharp / 12905761471

22 Jan 2025 10:03AM UTC coverage: 2.0% (-74.0%) from 75.963%
12905761471

push

github

DomCR
version 1.0.6

104 of 7676 branches covered (1.35%)

Branch coverage included in aggregate %.

590 of 27024 relevant lines covered (2.18%)

5.13 hits per line

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

0.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
                        /// Cell type.
14
                        /// </summary>
15
                        [DxfCodeValue(171)]
16
                        public CellType Type { get; set; }
×
17

18
                        /// <summary>
19
                        /// Cell flag value.
20
                        /// </summary>
21
                        [DxfCodeValue(172)]
22
                        public int FlagValue { get; set; }
×
23

24
                        /// <summary>
25
                        /// Cell merged value.
26
                        /// </summary>
27
                        [DxfCodeValue(173)]
28
                        public int MergedValue { get; set; }
×
29

30
                        /// <summary>
31
                        /// Boolean flag indicating if the autofit option is set for the cell.
32
                        /// </summary>
33
                        [DxfCodeValue(174)]
34
                        public bool Autofit { get; set; }
×
35

36
                        /// <summary>
37
                        /// Cell border width.
38
                        /// </summary>
39
                        /// <remarks>
40
                        /// Applicable only for merged cells.
41
                        /// </remarks>
42
                        [DxfCodeValue(175)]
43
                        public int BorderWidth { get; set; }
×
44

45
                        /// <summary>
46
                        /// Cell border height.
47
                        /// </summary>
48
                        /// <remarks>
49
                        /// Applicable only for merged cells.
50
                        /// </remarks>
51
                        [DxfCodeValue(176)]
52
                        public int BorderHeight { get; set; }
×
53

54
                        /// <summary>
55
                        /// Flag value for a virtual edge.
56
                        /// </summary>
57
                        [DxfCodeValue(178)]
58
                        public short VirtualEdgeFlag { get; set; }
×
59

60
                        /// <summary>
61
                        /// Rotation value.
62
                        /// </summary>
63
                        /// <remarks>
64
                        /// Applicable for a block-type cell and a text-type cell.
65
                        /// </remarks>
66
                        [DxfCodeValue(145)]
67
                        public double Rotation { get; set; }
×
68

69
                        [DxfCodeValue(300)]
70
                        public string ToolTip { get; set; }
×
71

72
                        [DxfCodeValue(90)]
73
                        public TableCellStateFlags StateFlags { get; set; }
×
74

75
                        [DxfCodeValue(92)]
76
                        public bool HasLinkedData { get; set; }
×
77

78
                        public CellStyle StyleOverride { get; set; } = new();
×
79

80
                        public int CustomData { get; set; }
×
81

82
                        public List<CustomDataEntry> CustomDataCollection { get; set; } = new();
×
83

84
                        public bool HasMultipleContent
85
                        {
86
                                get
87
                                {
×
88
                                        if (this.Contents == null)
×
89
                                        {
×
90
                                                return false;
×
91
                                        }
92

93
                                        return this.Contents.Count > 1;
×
94
                                }
×
95
                        }
96

97
                        public CellContent Content
98
                        {
99
                                get
100
                                {
×
101
                                        if (this.Contents == null || this.HasMultipleContent)
×
102
                                        {
×
103
                                                return null;
×
104
                                        }
105
                                        else
106
                                        {
×
107
                                                return this.Contents.FirstOrDefault();
×
108
                                        }
109
                                }
×
110
                        }
111

112
                        public List<CellContent> Contents { get; } = new();
×
113

114
                        public CellContentGeometry Geometry { get; set; }
×
115
                }
116
        }
117
}
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