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

DomCR / ACadSharp / 20299668905

17 Dec 2025 10:27AM UTC coverage: 77.148% (+0.02%) from 77.124%
20299668905

push

github

web-flow
Merge pull request #585 from DomCR/visualStyle-implementation

Visual style implementation

7697 of 10829 branches covered (71.08%)

Branch coverage included in aggregate %.

180 of 197 new or added lines in 4 files covered. (91.37%)

3 existing lines in 2 files now uncovered.

28369 of 35920 relevant lines covered (78.98%)

159598.54 hits per line

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

75.68
/src/ACadSharp/Objects/VisualStyle.cs
1
using ACadSharp.Attributes;
2

3
namespace ACadSharp.Objects
4
{
5
        /// <summary>
6
        /// Represents a <see cref="VisualStyle"/> object
7
        /// </summary>
8
        /// <remarks>
9
        /// Object name <see cref="DxfFileToken.ObjectVisualStyle"/> <br/>
10
        /// Dxf class name <see cref="DxfSubclassMarker.VisualStyle"/>
11
        /// </remarks>
12
        [DxfName(DxfFileToken.ObjectVisualStyle)]
13
        [DxfSubClass(DxfSubclassMarker.VisualStyle)]
14
        public class VisualStyle : NonGraphicalObject
15
        {
16
                [DxfCodeValue(44)]
17
                public double Brightness { get; set; }
1✔
18

19
                /// <summary>
20
                /// Color
21
                /// </summary>
22
                [DxfCodeValue(62, 63)]
23
                public Color Color { get; set; }
1✔
24

25
                /// <summary>
26
                /// Description
27
                /// </summary>
28
                [DxfCodeValue(2)]
29
                public string Description { get; set; }
×
30

31
                [DxfCodeValue(93)]
32
                public int DisplaySettings { get; set; }
1✔
33

34
                [DxfCodeValue(174)]
35
                public short EdgeApplyStyleFlag { get; set; }
1✔
36

37
                [DxfCodeValue(66)]
38
                public int EdgeColor { get; set; }
1✔
39

40
                [DxfCodeValue(42)]
41
                public double EdgeCreaseAngle { get; set; }
1✔
42

43
                [DxfCodeValue(64)]
44
                public Color EdgeIntersectionColor { get; set; }
1✔
45

46
                [DxfCodeValue(175)]
47
                public int EdgeIntersectionLineType { get; set; }
1✔
48

49
                [DxfCodeValue(171)]
50
                public short EdgeIsolineCount { get; set; }
1✔
51

52
                [DxfCodeValue(78)]
53
                public int EdgeJitter { get; set; }
1✔
54

55
                [DxfCodeValue(92)]
56
                public int EdgeModifiers { get; set; }
1✔
57

58
                [DxfCodeValue(65)]
59
                public Color EdgeObscuredColor { get; set; }
1✔
60

61
                [DxfCodeValue(75)]
62
                public int EdgeObscuredLineType { get; set; }
1✔
63

64
                [DxfCodeValue(77)]
65
                public int EdgeOverhang { get; set; }
1✔
66

67
                [DxfCodeValue(67)]
68
                public Color EdgeSilhouetteColor { get; set; }
1✔
69

70
                [DxfCodeValue(79)]
71
                public int EdgeSilhouetteWidth { get; set; }
1✔
72

73
                [DxfCodeValue(91)]
74
                public int EdgeStyle { get; set; }
1✔
75

76
                [DxfCodeValue(74)]
NEW
77
                public EdgeStyleModel EdgeStyleModel { get; set; }
×
78

79
                [DxfCodeValue(76)]
80
                public int EdgeWidth { get; set; }
1✔
81

82
                [DxfCodeValue(73)]
NEW
83
                public FaceColorMode FaceColorMode { get; set; }
×
84

85
                /// <summary>
86
                /// Gets or sets the lighting model used to render the face.
87
                /// </summary>
88
                /// <remarks>The lighting model determines how light interacts with the face during rendering, affecting its
89
                /// appearance and shading. Set this property to control the visual style of the face in 3D scenes.</remarks>
90
                [DxfCodeValue(71)]
91
                public FaceLightingModelType FaceLightingModel { get; set; }
×
92

93
                [DxfCodeValue(72)]
UNCOV
94
                public FaceLightingQualityType FaceLightingQuality { get; set; }
×
95

96
                [DxfCodeValue(90)]
UNCOV
97
                public FaceModifierType FaceModifiers { get; set; }
×
98

99
                /// <summary>
100
                /// Face opacity level
101
                /// </summary>
102
                [DxfCodeValue(40)]
103
                public double FaceOpacityLevel { get; set; }
1✔
104

105
                /// <summary>
106
                /// Face specular level
107
                /// </summary>
108
                [DxfCodeValue(41)]
109
                public double FaceSpecularLevel { get; set; }
1✔
110

111
                /// <summary>
112
                /// Face style mono color
113
                /// </summary>
114
                [DxfCodeValue(421)]
115
                public Color FaceStyleMonoColor { get; set; }
1✔
116

117
                [DxfCodeValue(170)]
118
                public short HaloGap { get; set; }
1✔
119

120
                /// <summary>
121
                /// Internal use only flag
122
                /// </summary>
123
                [DxfCodeValue(291)]
124
                public bool InternalFlag { get; internal set; }
1✔
125

126
                /// <inheritdoc/>
127
                public override string ObjectName => DxfFileToken.ObjectVisualStyle;
9,960✔
128

129
                /// <inheritdoc/>
NEW
130
                public override ObjectType ObjectType => ObjectType.UNLISTED;
×
131

132
                [DxfCodeValue(43)]
133
                public double OpacityLevel { get; set; }
1✔
134

135
                /// <summary>
136
                /// Edge hide precision flag
137
                /// </summary>
138
                [DxfCodeValue(290)]
139
                public bool PrecisionFlag { get; set; }
1✔
140

141
                /// <summary>
142
                /// Raster file name
143
                /// </summary>
144
                [DxfCodeValue(1)]
NEW
145
                public string RasterFile { get; set; }
×
146

147
                [DxfCodeValue(173)]
148
                public short ShadowType { get; set; }
1✔
149

150
                /// <inheritdoc/>
NEW
151
                public override string SubclassMarker => DxfSubclassMarker.VisualStyle;
×
152

153
                /// <summary>
154
                /// Type
155
                /// </summary>
156
                [DxfCodeValue(70)]
157
                public int Type { get; set; }
3,265✔
158

159
                /// <summary>
160
                /// Default <see cref="VisualStyle"/> name.
161
                /// </summary>
162
                public const string DefaultName = "2dWireframe";
163
        }
164
}
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