8 writes to UseCompatibleTextRendering
PresentationUI (1)
MS\Internal\Documents\DialogBaseForm.cs (1)
107
(c as Label).
UseCompatibleTextRendering
= false;
System.Windows.Forms (3)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
1736
base.
UseCompatibleTextRendering
= value;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (2)
221
_titleLabel.
UseCompatibleTextRendering
= OwnerPropertyGrid.UseCompatibleTextRendering;
222
_descriptionLabel.
UseCompatibleTextRendering
= OwnerPropertyGrid.UseCompatibleTextRendering;
System.Windows.Forms.Tests (4)
System\Windows\Forms\LabelTests.cs (4)
853
label.
UseCompatibleTextRendering
= true;
857
label.
UseCompatibleTextRendering
= false;
861
label.
UseCompatibleTextRendering
= defaultValue;
875
label.
UseCompatibleTextRendering
= !label.UseCompatibleTextRendering;
13 references to UseCompatibleTextRendering
System.Windows.Forms (7)
System\Windows\Forms\Controls\Labels\Label.cs (4)
1004
if (
UseCompatibleTextRendering
)
1047
internal virtual bool UseGDIMeasuring() => (FlatStyle == FlatStyle.System || !
UseCompatibleTextRendering
);
1106
if (
UseCompatibleTextRendering
&& FlatStyle != FlatStyle.System)
1280
if (
UseCompatibleTextRendering
)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (3)
1728
Debug.Assert(CanUseTextRenderer || base.
UseCompatibleTextRendering
, "Using GDI text rendering when CanUseTextRenderer reported false.");
1729
return base.
UseCompatibleTextRendering
;
1733
if (base.
UseCompatibleTextRendering
!= value)
System.Windows.Forms.Tests (6)
System\Windows\Forms\LabelTests.cs (6)
108
Assert.True(control.
UseCompatibleTextRendering
);
850
bool defaultValue = label.
UseCompatibleTextRendering
;
854
Assert.True(label.
UseCompatibleTextRendering
);
858
Assert.False(label.
UseCompatibleTextRendering
);
862
Assert.Equal(defaultValue, label.
UseCompatibleTextRendering
);
875
label.UseCompatibleTextRendering = !label.
UseCompatibleTextRendering
;