39 writes to Rtf
System.Windows.Forms (2)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (2)
2332Rtf = string.Empty; 2474Rtf = text;
System.Windows.Forms.Tests (30)
System\Windows\Forms\RichTextBoxTests.cs (30)
2707Rtf = "{\\rtf1Hello World}" 2716control.Rtf = nullOrEmpty; 2730Rtf = rtf 2753control.Rtf = "{\\rtf1Hello World}"; 2763control.Rtf = nullOrEmpty; 2787control.Rtf = "{\\rtf1text}"; 2792control.Rtf = "{\\rtf1text}"; 2803control.Rtf = "{\\rtf1text}"; 2830control.Rtf = "{\\rtf1text}"; 2839control.Rtf = "{\\rtf1text}"; 2848control.Rtf = null; 2858control.Rtf = "{\\rtf1text}"; 2871Assert.Throws<ArgumentException>(() => control.Rtf = "text"); 2884control.Rtf = value; 2889control.Rtf = value; 2900Assert.Throws<ObjectDisposedException>(() => control.Rtf = value); 3323Rtf = "{\\rtf1Hello World}", 3345Rtf = "{\\rtf1Hello World}" 3562Rtf = "{\\rtf1Hello World}", 7000Rtf = "{\\rtf Hello World}" 7057Rtf = "{\\rtf Hello World}", 7282Rtf = "{\\rtf Hello World}" 7920Rtf = "{\\rtf1\\ansi\\deff0\\trowd\\pard\\intbl Test\\cell Example\\cell Meow\\cell Woof\\cell \\row}" 8624Rtf = "{\\rtf1OldText}" 8711Rtf = "{\\rtf1OldText}" 8743Rtf = "{\\rtf1OldText}" 9752control.Rtf = $"{{\\rtf1\\ansi {input}}}"; 10577riched20.Rtf = rtfString; 10581richTextBox.Rtf = rtfString; 10674Rtf = @"{\rtf1\ansi{Sample for {\v HIDDEN }text}}"
System.Windows.Forms.UI.IntegrationTests (6)
DragDropTests.cs (3)
160richTextBox.Rtf = File.ReadAllText(dragAcceptRtfDestPath); 428richTextBox.Rtf = File.ReadAllText(dragAcceptRtfPath); 458richTextBox.Rtf = File.ReadAllText(dragAcceptRtfPath);
RichTextBoxTests.cs (3)
23richTextBox.Rtf = @"{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang4105{\fonttbl{\f0\fnil\fcharset0 Calibri;}} 82richTextBox.Rtf = @"{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang4105{\fonttbl{\f0\fnil\fcharset0 Calibri;}} 142richTextBox.Rtf = @"{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang4105{\fonttbl{\f0\fnil\fcharset0 Calibri;}}
WinFormsControlsTest (1)
RichTextBoxes.cs (1)
23richTextBox2.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)
613if (value.Equals(Rtf)) 2521_textRtf = Rtf;
System.Windows.Forms.Tests (35)
System\Windows\Forms\RichTextBoxTests.ClipboardTests.cs (1)
81richTextBox1.Rtf.Should().StartWith("{\\rtf");
System\Windows\Forms\RichTextBoxTests.cs (34)
117Assert.Null(control.Rtf); 2610string rtf1 = control.Rtf; 2618string rtf2 = control.Rtf; 2631string rtf1 = control.Rtf; 2637string rtf2 = control.Rtf; 2658string rtf1 = control.Rtf; 2667string rtf2 = control.Rtf; 2680Assert.Null(control.Rtf); 2689Assert.Null(control.Rtf); 2698Assert.Throws<ObjectDisposedException>(() => control.Rtf); 2710string rtf = control.Rtf; 2712Assert.NotSame(rtf, control.Rtf); 2717rtf = control.Rtf; 2733string readRtf = control.Rtf; 2735Assert.NotSame(readRtf, control.Rtf); 2754string rtf = control.Rtf; 2756Assert.NotSame(rtf, control.Rtf); 2764rtf = control.Rtf; 2873Assert.DoesNotContain("text", control.Rtf); 2885Assert.Equal(expected, control.Rtf); 2890Assert.Equal(expected, control.Rtf); 3380Assert.DoesNotContain("text", control.Rtf); 7061Assert.Contains(expected, control.Rtf); 7062Assert.DoesNotContain("Hello World", control.Rtf); 7074Assert.Contains(expected, control.Rtf); 7075Assert.DoesNotContain("Hello World", control.Rtf); 7294Assert.Contains(expected, control.Rtf); 7295Assert.DoesNotContain("Hello World", control.Rtf); 7310Assert.Contains(expected, control.Rtf); 7311Assert.DoesNotContain("Hello World", control.Rtf); 8633Assert.DoesNotContain("OldText", control.Rtf); 8720Assert.DoesNotContain("OldText", control.Rtf); 8752Assert.DoesNotContain("OldText", control.Rtf); 10690richTextBox2.Rtf.Should().NotBeNullOrEmpty();
System.Windows.Forms.UI.IntegrationTests (11)
DragDropTests.cs (11)
161dragAcceptRtfContent = richTextBox.Rtf; 219TestOutputHelper.WriteLine($"RichTextBoxDropTarget.Rtf: {dragDropForm.RichTextBoxDropTarget.Rtf}"); 220Assert.False(string.IsNullOrWhiteSpace(dragDropForm.RichTextBoxDropTarget.Rtf), 221$"Actual form.RichTextBoxDropTarget.Rtf: {dragDropForm.RichTextBoxDropTarget.Rtf}"); 228Assert.Equal(dragAcceptRtfContent, dragDropForm.RichTextBoxDropTarget?.Rtf); 429string dragAcceptRtfContent = richTextBox.Rtf; 444Assert.False(string.IsNullOrWhiteSpace(form.RichTextBoxDropTarget.Rtf)); 446Assert.Equal(dragAcceptRtfContent, form.RichTextBoxDropTarget?.Rtf); 459string dragAcceptRtfContent = richTextBox.Rtf; 487Assert.False(string.IsNullOrWhiteSpace(form.RichTextBoxDropTarget.Rtf)); 489Assert.Equal(dragAcceptRtfContent, form.RichTextBoxDropTarget?.Rtf);