Skip to content

Commit c360311

Browse files
authored
RichTextBoxTarget - Ignore Config Property TargetForm +TargetRichTextBox (#190)
1 parent c14c10c commit c360311

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

NLog.Windows.Forms/RichTextBoxTarget.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,11 +287,13 @@ public RichTextBoxTarget()
287287
/// <summary>
288288
/// Gets or sets the form to log to.
289289
/// </summary>
290+
[NLogConfigurationIgnoreProperty]
290291
public Form TargetForm { get; set; }
291292

292293
/// <summary>
293294
/// Gets or sets the rich text box to log to.
294295
/// </summary>
296+
[NLogConfigurationIgnoreProperty]
295297
public RichTextBox TargetRichTextBox { get; set; }
296298

297299
/// <summary>
@@ -308,7 +310,6 @@ public RichTextBoxTarget()
308310
/// <docgen category='Form Options' order='10' />
309311
public bool AllowAccessoryFormCreation { get; set; } = true;
310312

311-
312313
/// <summary>
313314
/// gets or sets the message retention strategy which determines how the target handles messages when there's no control attached, or when switching between controls
314315
/// </summary>
@@ -448,8 +449,6 @@ internal int? LinkedEventsCount
448449
}
449450
}
450451

451-
452-
453452
/// <summary>
454453
/// Internal prefix that is added to the link id in RTF
455454
/// </summary>

0 commit comments

Comments
 (0)