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)
2707
Rtf
= "{\\rtf1Hello World}"
2716
control.
Rtf
= nullOrEmpty;
2730
Rtf
= rtf
2753
control.
Rtf
= "{\\rtf1Hello World}";
2763
control.
Rtf
= nullOrEmpty;
2787
control.
Rtf
= "{\\rtf1text}";
2792
control.
Rtf
= "{\\rtf1text}";
2803
control.
Rtf
= "{\\rtf1text}";
2830
control.
Rtf
= "{\\rtf1text}";
2839
control.
Rtf
= "{\\rtf1text}";
2848
control.
Rtf
= null;
2858
control.
Rtf
= "{\\rtf1text}";
2871
Assert.Throws<ArgumentException>(() => control.
Rtf
= "text");
2884
control.
Rtf
= value;
2889
control.
Rtf
= value;
2900
Assert.Throws<ObjectDisposedException>(() => control.
Rtf
= value);
3323
Rtf
= "{\\rtf1Hello World}",
3345
Rtf
= "{\\rtf1Hello World}"
3562
Rtf
= "{\\rtf1Hello World}",
7000
Rtf
= "{\\rtf Hello World}"
7057
Rtf
= "{\\rtf Hello World}",
7282
Rtf
= "{\\rtf Hello World}"
7920
Rtf
= "{\\rtf1\\ansi\\deff0\\trowd\\pard\\intbl Test\\cell Example\\cell Meow\\cell Woof\\cell \\row}"
8624
Rtf
= "{\\rtf1OldText}"
8711
Rtf
= "{\\rtf1OldText}"
8743
Rtf
= "{\\rtf1OldText}"
9752
control.
Rtf
= $"{{\\rtf1\\ansi {input}}}";
10577
riched20.
Rtf
= rtfString;
10581
richTextBox.
Rtf
= rtfString;
10674
Rtf
= @"{\rtf1\ansi{Sample for {\v HIDDEN }text}}"
System.Windows.Forms.UI.IntegrationTests (6)
DragDropTests.cs (3)
158
richTextBox.
Rtf
= File.ReadAllText(dragAcceptRtfDestPath);
424
richTextBox.
Rtf
= File.ReadAllText(dragAcceptRtfPath);
454
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)
80
richTextBox1.
Rtf
.Should().StartWith("{\\rtf");
System\Windows\Forms\RichTextBoxTests.cs (34)
117
Assert.Null(control.
Rtf
);
2610
string rtf1 = control.
Rtf
;
2618
string rtf2 = control.
Rtf
;
2631
string rtf1 = control.
Rtf
;
2637
string rtf2 = control.
Rtf
;
2658
string rtf1 = control.
Rtf
;
2667
string rtf2 = control.
Rtf
;
2680
Assert.Null(control.
Rtf
);
2689
Assert.Null(control.
Rtf
);
2698
Assert.Throws<ObjectDisposedException>(() => control.
Rtf
);
2710
string rtf = control.
Rtf
;
2712
Assert.NotSame(rtf, control.
Rtf
);
2717
rtf = control.
Rtf
;
2733
string readRtf = control.
Rtf
;
2735
Assert.NotSame(readRtf, control.
Rtf
);
2754
string rtf = control.
Rtf
;
2756
Assert.NotSame(rtf, control.
Rtf
);
2764
rtf = control.
Rtf
;
2873
Assert.DoesNotContain("text", control.
Rtf
);
2885
Assert.Equal(expected, control.
Rtf
);
2890
Assert.Equal(expected, control.
Rtf
);
3380
Assert.DoesNotContain("text", control.
Rtf
);
7061
Assert.Contains(expected, control.
Rtf
);
7062
Assert.DoesNotContain("Hello World", control.
Rtf
);
7074
Assert.Contains(expected, control.
Rtf
);
7075
Assert.DoesNotContain("Hello World", control.
Rtf
);
7294
Assert.Contains(expected, control.
Rtf
);
7295
Assert.DoesNotContain("Hello World", control.
Rtf
);
7310
Assert.Contains(expected, control.
Rtf
);
7311
Assert.DoesNotContain("Hello World", control.
Rtf
);
8633
Assert.DoesNotContain("OldText", control.
Rtf
);
8720
Assert.DoesNotContain("OldText", control.
Rtf
);
8752
Assert.DoesNotContain("OldText", control.
Rtf
);
10690
richTextBox2.
Rtf
.Should().NotBeNullOrEmpty();
System.Windows.Forms.UI.IntegrationTests (11)
DragDropTests.cs (11)
159
dragAcceptRtfContent = richTextBox.
Rtf
;
217
TestOutputHelper.WriteLine($"RichTextBoxDropTarget.Rtf: {dragDropForm.RichTextBoxDropTarget.
Rtf
}");
218
Assert.False(string.IsNullOrWhiteSpace(dragDropForm.RichTextBoxDropTarget.
Rtf
),
219
$"Actual form.RichTextBoxDropTarget.Rtf: {dragDropForm.RichTextBoxDropTarget.
Rtf
}");
226
Assert.Equal(dragAcceptRtfContent, dragDropForm.RichTextBoxDropTarget?.
Rtf
);
425
string dragAcceptRtfContent = richTextBox.
Rtf
;
440
Assert.False(string.IsNullOrWhiteSpace(form.RichTextBoxDropTarget.
Rtf
));
442
Assert.Equal(dragAcceptRtfContent, form.RichTextBoxDropTarget?.
Rtf
);
455
string dragAcceptRtfContent = richTextBox.
Rtf
;
483
Assert.False(string.IsNullOrWhiteSpace(form.RichTextBoxDropTarget.
Rtf
));
485
Assert.Equal(dragAcceptRtfContent, form.RichTextBoxDropTarget?.
Rtf
);