39 writes to Rtf
System.Windows.Forms (2)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (2)
2332
Rtf
= string.Empty;
2474
Rtf
= text;
System.Windows.Forms.Tests (30)
System\Windows\Forms\RichTextBoxTests.cs (30)
2709
Rtf
= "{\\rtf1Hello World}"
2718
control.
Rtf
= nullOrEmpty;
2732
Rtf
= rtf
2755
control.
Rtf
= "{\\rtf1Hello World}";
2765
control.
Rtf
= nullOrEmpty;
2789
control.
Rtf
= "{\\rtf1text}";
2794
control.
Rtf
= "{\\rtf1text}";
2805
control.
Rtf
= "{\\rtf1text}";
2832
control.
Rtf
= "{\\rtf1text}";
2841
control.
Rtf
= "{\\rtf1text}";
2850
control.
Rtf
= null;
2860
control.
Rtf
= "{\\rtf1text}";
2873
Assert.Throws<ArgumentException>(() => control.
Rtf
= "text");
2886
control.
Rtf
= value;
2891
control.
Rtf
= value;
2902
Assert.Throws<ObjectDisposedException>(() => control.
Rtf
= value);
3325
Rtf
= "{\\rtf1Hello World}",
3347
Rtf
= "{\\rtf1Hello World}"
3564
Rtf
= "{\\rtf1Hello World}",
7002
Rtf
= "{\\rtf Hello World}"
7059
Rtf
= "{\\rtf Hello World}",
7284
Rtf
= "{\\rtf Hello World}"
7922
Rtf
= "{\\rtf1\\ansi\\deff0\\trowd\\pard\\intbl Test\\cell Example\\cell Meow\\cell Woof\\cell \\row}"
8626
Rtf
= "{\\rtf1OldText}"
8713
Rtf
= "{\\rtf1OldText}"
8745
Rtf
= "{\\rtf1OldText}"
9754
control.
Rtf
= $"{{\\rtf1\\ansi {input}}}";
10579
riched20.
Rtf
= rtfString;
10583
richTextBox.
Rtf
= rtfString;
10676
Rtf
= @"{\rtf1\ansi{Sample for {\v HIDDEN }text}}"
System.Windows.Forms.UI.IntegrationTests (6)
DragDropTests.cs (3)
160
richTextBox.
Rtf
= File.ReadAllText(dragAcceptRtfDestPath);
428
richTextBox.
Rtf
= File.ReadAllText(dragAcceptRtfPath);
458
richTextBox.
Rtf
= File.ReadAllText(dragAcceptRtfPath);
RichTextBoxTests.cs (3)
23
richTextBox.
Rtf
= @"{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang4105{\fonttbl{\f0\fnil\fcharset0 Calibri;}}
82
richTextBox.
Rtf
= @"{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang4105{\fonttbl{\f0\fnil\fcharset0 Calibri;}}
142
richTextBox.
Rtf
= @"{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang4105{\fonttbl{\f0\fnil\fcharset0 Calibri;}}
WinFormsControlsTest (1)
RichTextBoxes.cs (1)
23
richTextBox2.
Rtf
= @"{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang4105{\fonttbl{\f0\fnil\fcharset0 Calibri;}}
48 references to Rtf
System.Windows.Forms (2)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (2)
613
if (value.Equals(
Rtf
))
2521
_textRtf =
Rtf
;
System.Windows.Forms.Tests (35)
System\Windows\Forms\RichTextBoxTests.ClipboardTests.cs (1)
83
richTextBox1.
Rtf
.Should().StartWith("{\\rtf");
System\Windows\Forms\RichTextBoxTests.cs (34)
119
Assert.Null(control.
Rtf
);
2612
string rtf1 = control.
Rtf
;
2620
string rtf2 = control.
Rtf
;
2633
string rtf1 = control.
Rtf
;
2639
string rtf2 = control.
Rtf
;
2660
string rtf1 = control.
Rtf
;
2669
string rtf2 = control.
Rtf
;
2682
Assert.Null(control.
Rtf
);
2691
Assert.Null(control.
Rtf
);
2700
Assert.Throws<ObjectDisposedException>(() => control.
Rtf
);
2712
string rtf = control.
Rtf
;
2714
Assert.NotSame(rtf, control.
Rtf
);
2719
rtf = control.
Rtf
;
2735
string readRtf = control.
Rtf
;
2737
Assert.NotSame(readRtf, control.
Rtf
);
2756
string rtf = control.
Rtf
;
2758
Assert.NotSame(rtf, control.
Rtf
);
2766
rtf = control.
Rtf
;
2875
Assert.DoesNotContain("text", control.
Rtf
);
2887
Assert.Equal(expected, control.
Rtf
);
2892
Assert.Equal(expected, control.
Rtf
);
3382
Assert.DoesNotContain("text", control.
Rtf
);
7063
Assert.Contains(expected, control.
Rtf
);
7064
Assert.DoesNotContain("Hello World", control.
Rtf
);
7076
Assert.Contains(expected, control.
Rtf
);
7077
Assert.DoesNotContain("Hello World", control.
Rtf
);
7296
Assert.Contains(expected, control.
Rtf
);
7297
Assert.DoesNotContain("Hello World", control.
Rtf
);
7312
Assert.Contains(expected, control.
Rtf
);
7313
Assert.DoesNotContain("Hello World", control.
Rtf
);
8635
Assert.DoesNotContain("OldText", control.
Rtf
);
8722
Assert.DoesNotContain("OldText", control.
Rtf
);
8754
Assert.DoesNotContain("OldText", control.
Rtf
);
10692
richTextBox2.
Rtf
.Should().NotBeNullOrEmpty();
System.Windows.Forms.UI.IntegrationTests (11)
DragDropTests.cs (11)
161
dragAcceptRtfContent = richTextBox.
Rtf
;
219
TestOutputHelper.WriteLine($"RichTextBoxDropTarget.Rtf: {dragDropForm.RichTextBoxDropTarget.
Rtf
}");
220
Assert.False(string.IsNullOrWhiteSpace(dragDropForm.RichTextBoxDropTarget.
Rtf
),
221
$"Actual form.RichTextBoxDropTarget.Rtf: {dragDropForm.RichTextBoxDropTarget.
Rtf
}");
228
Assert.Equal(dragAcceptRtfContent, dragDropForm.RichTextBoxDropTarget?.
Rtf
);
429
string dragAcceptRtfContent = richTextBox.
Rtf
;
444
Assert.False(string.IsNullOrWhiteSpace(form.RichTextBoxDropTarget.
Rtf
));
446
Assert.Equal(dragAcceptRtfContent, form.RichTextBoxDropTarget?.
Rtf
);
459
string dragAcceptRtfContent = richTextBox.
Rtf
;
487
Assert.False(string.IsNullOrWhiteSpace(form.RichTextBoxDropTarget.
Rtf
));
489
Assert.Equal(dragAcceptRtfContent, form.RichTextBoxDropTarget?.
Rtf
);