Skip to content

Commit e90f8c1

Browse files
author
ArthurHub
committed
add DefaultValue annotation for designer
1 parent 90f3d36 commit e90f8c1

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎Source/HtmlRenderer/HtmlLabel.cs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ public HtmlLabel()
168168
/// Gets or sets a value indicating if anti-aliasing should be avoided for geometry like backgrounds and borders (default - false).
169169
/// </summary>
170170
[Category("Behavior")]
171+
[DefaultValue(false)]
171172
[Description("If anti-aliasing should be avoided for geometry like backgrounds and borders")]
172173
public virtual bool AvoidGeometryAntialias
173174
{
@@ -190,6 +191,7 @@ public virtual bool AvoidGeometryAntialias
190191
/// </remarks>
191192
[Category("Behavior")]
192193
[EditorBrowsable(EditorBrowsableState.Always)]
194+
[DefaultValue(false)]
193195
[Description("If to use GDI+ text rendering to measure/draw text, false - use GDI")]
194196
public bool UseGdiPlusTextRendering
195197
{

‎Source/HtmlRenderer/HtmlPanel.cs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ public HtmlPanel()
150150
/// Gets or sets a value indicating if anti-aliasing should be avoided for geometry like backgrounds and borders (default - false).
151151
/// </summary>
152152
[Category("Behavior")]
153+
[DefaultValue(false)]
153154
[Description("If anti-aliasing should be avoided for geometry like backgrounds and borders")]
154155
public virtual bool AvoidGeometryAntialias
155156
{
@@ -171,6 +172,7 @@ public virtual bool AvoidGeometryAntialias
171172
/// will push the html elements down.
172173
/// </remarks>
173174
[Category("Behavior")]
175+
[DefaultValue(false)]
174176
[Description("If image loading only when visible should be avoided")]
175177
public virtual bool AvoidImagesLateLoading
176178
{
@@ -192,6 +194,7 @@ public virtual bool AvoidImagesLateLoading
192194
/// </para>
193195
/// </remarks>
194196
[Category("Behavior")]
197+
[DefaultValue(false)]
195198
[EditorBrowsable(EditorBrowsableState.Always)]
196199
[Description("If to use GDI+ text rendering to measure/draw text, false - use GDI")]
197200
public bool UseGdiPlusTextRendering

‎Source/HtmlRenderer/HtmlToolTip.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ public HtmlToolTip()
140140
/// </para>
141141
/// </remarks>
142142
[Category("Behavior")]
143+
[DefaultValue(false)]
143144
[EditorBrowsable(EditorBrowsableState.Always)]
144145
[Description("If to use GDI+ text rendering to measure/draw text, false - use GDI")]
145146
public bool UseGdiPlusTextRendering

0 commit comments

Comments
 (0)