• 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.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, is only supported in Dwg and for versions higher than AC1021")]
20
        public partial class TableEntity : Insert
21
        {
22
                /// <inheritdoc/>
23
                public override ObjectType ObjectType => ObjectType.UNLISTED;
×
24

25
                /// <inheritdoc/>
26
                public override string ObjectName => DxfFileToken.EntityTable;
×
27

28
                /// <inheritdoc/>
29
                public override string SubclassMarker => DxfSubclassMarker.TableEntity;
×
30

31
                /// <summary>
32
                /// Table data version
33
                /// </summary>
34
                [DxfCodeValue(280)]
35
                public short Version { get; set; }
×
36

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

43
                /// <summary>
44
                /// Flag for table value.
45
                /// </summary>
46
                [DxfCodeValue(90)]
47
                public int ValueFlag { get; set; }
×
48

49
                /// <summary>
50
                /// Table rows.
51
                /// </summary>
52
                [DxfCodeValue(DxfReferenceType.Count, 91)]
53
                public List<Row> Rows { get; set; } = new List<Row>();
×
54

55
                /// <summary>
56
                /// Table columns
57
                /// </summary>
58
                [DxfCodeValue(DxfReferenceType.Count, 92)]
59
                public List<Column> Columns { get; set; } = new List<Column>();
×
60

61
                /// <summary>
62
                /// Flag for an override.
63
                /// </summary>
64
                [DxfCodeValue(93)]
65
                public bool OverrideFlag { get; set; }
×
66

67
                /// <summary>
68
                /// Flag for an override of border color.
69
                /// </summary>
70
                [DxfCodeValue(94)]
71
                public bool OverrideBorderColor { get; set; }
×
72

73
                /// <summary>
74
                /// Flag for an override of border line weight.
75
                /// </summary>
76
                [DxfCodeValue(95)]
77
                public bool OverrideBorderLineWeight { get; set; }
×
78

79
                /// <summary>
80
                /// Flag for an override of border visibility.
81
                /// </summary>
82
                [DxfCodeValue(96)]
83
                public bool OverrideBorderVisibility { get; set; }
×
84

85
                /// <summary>
86
                /// Table Style
87
                /// </summary>
88
                [DxfCodeValue(DxfReferenceType.Handle, 342)]
89
                public TableStyle Style { get; set; }
×
90

91
                //343        Hard pointer ID of the owning BLOCK record
92
                [DxfCodeValue(DxfReferenceType.Handle, 343)]
93
                [Obsolete("Is it needed??")]
94
                internal BlockRecord TableBlock { get { return this.Block; } }
×
95

96
                public TableContent Content { get; set; } = new();
×
97

98
                internal BreakData TableBreakData { get; set; } = new();
×
99

100
                internal List<BreakRowRange> BreakRowRanges { get; set; } = new();
×
101

102
                public Cell GetCell(int row, int column)
103
                {
×
104
                        return this.Rows[row].Cells[column];
×
105
                }
×
106

107
                /// <inheritdoc/>
108
                public override BoundingBox GetBoundingBox()
109
                {
×
110
                        return BoundingBox.Null;
×
111
                }
×
112

113
                /// <inheritdoc/>
114
                public override CadObject Clone()
115
                {
×
116
                        return base.Clone();
×
117
                }
×
118
        }
119
}
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