Skip to content

Commit 23f0bb6

Browse files
committed
Standardize terminology by replacing "behaviour" with "behavior" and "colour" with "color"
1 parent 9c7fb68 commit 23f0bb6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Serilog.Sinks.RichTextBox.WinForms.Colored/Sinks/RichTextBoxForms/RichTextBoxSinkOptions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ public class RichTextBoxSinkOptions
2828
private int _maxLogLines;
2929

3030
/// <summary>
31-
/// Creates a new collection of options that control the behaviour and appearance of a
31+
/// Creates a new collection of options that control the behavior and appearance of a
3232
/// <see cref="RichTextBoxSink"/> instance.
3333
/// </summary>
34-
/// <param name="theme">The colour theme applied when rendering individual message tokens.</param>
34+
/// <param name="theme">The color theme applied when rendering individual message tokens.</param>
3535
/// <param name="autoScroll">When <c>true</c> (default) the target control scrolls automatically to the most recent log line.</param>
3636
/// <param name="maxLogLines">Maximum number of log events retained in the in-memory circular buffer and rendered in the control.</param>
3737
/// <param name="outputTemplate">Serilog output template that controls textual formatting of each log event.</param>

Serilog.Sinks.RichTextBox.WinForms.Colored/Sinks/RichTextBoxForms/Rtf/RtfBuilder.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ public RtfBuilder(Theme theme)
3939
_currentFgIndex = RegisterColor(SelectionColor);
4040
_currentBgIndex = RegisterColor(SelectionBackColor);
4141

42-
foreach (var colour in theme.Colors)
42+
foreach (var color in theme.Colors)
4343
{
44-
RegisterColor(colour);
44+
RegisterColor(color);
4545
}
4646
}
4747

@@ -57,7 +57,7 @@ public RtfBuilder(Theme theme)
5757

5858
public void AppendText(string text)
5959
{
60-
EnsureColourSwitch();
60+
EnsureColorSwitch();
6161
EscapeAndAppend(text);
6262
TextLength += text.Length;
6363
}
@@ -67,7 +67,7 @@ public string Rtf
6767
get => BuildDocument();
6868
}
6969

70-
private void EnsureColourSwitch()
70+
private void EnsureColorSwitch()
7171
{
7272
var fgIdx = RegisterColor(SelectionColor);
7373
var bgIdx = RegisterColor(SelectionBackColor);

0 commit comments

Comments
 (0)