Click or drag to resize

RichTextBoxTargetGetTargetByControl Method (RichTextBox, LoggingConfiguration)

Returns a target attached to a given RichTextBox control

Namespace:  NLog.Windows.Forms
Assembly:  NLog.Windows.Forms (in NLog.Windows.Forms.dll) Version: 5.2.4+61769f974f2d827eeb9ad49a6ae7d02f62cfdccc
Syntax
public static RichTextBoxTarget GetTargetByControl(
	RichTextBox control,
	LoggingConfiguration configuration
)

Parameters

control
Type: System.Windows.FormsRichTextBox
a RichTextBox control for which the target is to be returned
configuration
Type: NLog.ConfigLoggingConfiguration
NLog's configuration. null is not allowed

Return Value

Type: RichTextBoxTarget
A RichTextBoxTarget attached to a given control or
1null
if no target is attached
See Also