74 references to CFE_EFFECTS
System.Windows.Forms (15)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (15)
886
if ((cf2.dwEffects &
CFE_EFFECTS
.CFE_AUTOBACKCOLOR) != 0)
916
cf2.dwEffects =
CFE_EFFECTS
.CFE_AUTOBACKCOLOR;
1079
return GetCharFormat(CFM_MASK.CFM_PROTECTED,
CFE_EFFECTS
.CFE_PROTECTED) == RichTextBoxSelectionAttribute.All;
1084
SetCharFormat(CFM_MASK.CFM_PROTECTED, value ?
CFE_EFFECTS
.CFE_PROTECTED : 0, RichTextBoxSelectionAttribute.All);
2130
private RichTextBoxSelectionAttribute GetCharFormat(CFM_MASK mask,
CFE_EFFECTS
effect)
2173
if ((cf.dwMask & CFM_MASK.CFM_BOLD) != 0 && (cf.dwEffects &
CFE_EFFECTS
.CFE_BOLD) != 0)
2178
if ((cf.dwMask & CFM_MASK.CFM_ITALIC) != 0 && (cf.dwEffects &
CFE_EFFECTS
.CFE_ITALIC) != 0)
2183
if ((cf.dwMask & CFM_MASK.CFM_STRIKEOUT) != 0 && (cf.dwEffects &
CFE_EFFECTS
.CFE_STRIKEOUT) != 0)
2188
if ((cf.dwMask & CFM_MASK.CFM_UNDERLINE) != 0 && (cf.dwEffects &
CFE_EFFECTS
.CFE_UNDERLINE) != 0)
2685
private unsafe bool SetCharFormat(CFM_MASK mask,
CFE_EFFECTS
effect, RichTextBoxSelectionAttribute charFormat)
2722
CFE_EFFECTS
dwEffects = 0;
2725
dwEffects |=
CFE_EFFECTS
.CFE_BOLD;
2730
dwEffects |=
CFE_EFFECTS
.CFE_ITALIC;
2735
dwEffects |=
CFE_EFFECTS
.CFE_STRIKEOUT;
2740
dwEffects |=
CFE_EFFECTS
.CFE_UNDERLINE;
System.Windows.Forms.Primitives (1)
Interop\Richedit\Interop.CHARFORMAT2W.cs (1)
16
public
CFE_EFFECTS
dwEffects;
System.Windows.Forms.Tests (56)
System\Windows\Forms\RichTextBoxTests.cs (56)
1584
yield return new object[] { "Arial", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 1, 165,
CFE_EFFECTS
.CFE_BOLD };
1585
yield return new object[] { "Arial", 8.25f, FontStyle.Italic, GraphicsUnit.Point, 1, 165,
CFE_EFFECTS
.CFE_ITALIC };
1586
yield return new object[] { "Arial", 8.25f, FontStyle.Strikeout, GraphicsUnit.Point, 1, 165,
CFE_EFFECTS
.CFE_STRIKEOUT };
1587
yield return new object[] { "Arial", 8.25f, FontStyle.Underline, GraphicsUnit.Point, 1, 165,
CFE_EFFECTS
.CFE_UNDERLINE };
1588
yield return new object[] { "Arial", 8.25f, FontStyle.Bold | FontStyle.Italic | FontStyle.Regular | FontStyle.Strikeout | FontStyle.Underline, GraphicsUnit.Point, 10, 165,
CFE_EFFECTS
.CFE_BOLD |
CFE_EFFECTS
.CFE_ITALIC |
CFE_EFFECTS
.CFE_UNDERLINE |
CFE_EFFECTS
.CFE_STRIKEOUT };
1613
Assert.Equal(
CFE_EFFECTS
.CFE_AUTOBACKCOLOR |
CFE_EFFECTS
.CFE_AUTOCOLOR | (
CFE_EFFECTS
)expectedEffects, format.dwEffects);
1630
Assert.True(format1.dwEffects.HasFlag(
CFE_EFFECTS
.CFE_AUTOBACKCOLOR));
1631
Assert.True(format1.dwEffects.HasFlag(
CFE_EFFECTS
.CFE_AUTOCOLOR));
3841
yield return new object[] { 0,
CFE_EFFECTS
.CFE_AUTOBACKCOLOR, 0x78563412, Color.Red };
3842
yield return new object[] { 0,
CFE_EFFECTS
.CFE_AUTOBACKCOLOR |
CFE_EFFECTS
.CFE_ALLCAPS, 0x78563412, Color.Red };
3846
yield return new object[] { CFM_MASK.CFM_BACKCOLOR,
CFE_EFFECTS
.CFE_AUTOBACKCOLOR, 0x78563412, Color.Red };
3860
dwEffects = (
CFE_EFFECTS
)effects,
3880
dwEffects = (
CFE_EFFECTS
)effects,
4716
yield return new object[] { CFM_MASK.CFM_BOLD,
CFE_EFFECTS
.CFE_BOLD, 0, arial, "Arial", 13, FontStyle.Bold };
4717
yield return new object[] { CFM_MASK.CFM_BOLD,
CFE_EFFECTS
.CFE_BOLD |
CFE_EFFECTS
.CFE_ALLCAPS, 0, arial, "Arial", 13, FontStyle.Bold };
4719
yield return new object[] { CFM_MASK.CFM_ITALIC,
CFE_EFFECTS
.CFE_ITALIC, 0, arial, "Arial", 13, FontStyle.Italic };
4720
yield return new object[] { CFM_MASK.CFM_ITALIC,
CFE_EFFECTS
.CFE_ITALIC |
CFE_EFFECTS
.CFE_ALLCAPS, 0, arial, "Arial", 13, FontStyle.Italic };
4722
yield return new object[] { CFM_MASK.CFM_STRIKEOUT,
CFE_EFFECTS
.CFE_STRIKEOUT, 0, arial, "Arial", 13, FontStyle.Strikeout };
4723
yield return new object[] { CFM_MASK.CFM_STRIKEOUT,
CFE_EFFECTS
.CFE_STRIKEOUT |
CFE_EFFECTS
.CFE_STRIKEOUT, 0, arial, "Arial", 13, FontStyle.Strikeout };
4725
yield return new object[] { CFM_MASK.CFM_UNDERLINE,
CFE_EFFECTS
.CFE_UNDERLINE, 0, arial, "Arial", 13, FontStyle.Underline };
4726
yield return new object[] { CFM_MASK.CFM_UNDERLINE,
CFE_EFFECTS
.CFE_UNDERLINE |
CFE_EFFECTS
.CFE_UNDERLINE, 0, arial, "Arial", 13, FontStyle.Underline };
4728
yield return new object[] { CFM_MASK.CFM_ALLCAPS,
CFE_EFFECTS
.CFE_BOLD, 0, arial, "Arial", 13, FontStyle.Regular };
4729
yield return new object[] { CFM_MASK.CFM_ALLCAPS,
CFE_EFFECTS
.CFE_BOLD |
CFE_EFFECTS
.CFE_ALLCAPS, 0, arial, "Arial", 13, FontStyle.Regular };
4739
dwEffects = (
CFE_EFFECTS
)effects,
4918
yield return new object[] { new Font("Arial", 8.25f, FontStyle.Bold), 165,
CFE_EFFECTS
.CFE_BOLD };
4919
yield return new object[] { new Font("Arial", 8.25f, FontStyle.Italic), 165,
CFE_EFFECTS
.CFE_ITALIC };
4920
yield return new object[] { new Font("Arial", 8.25f, FontStyle.Strikeout), 165,
CFE_EFFECTS
.CFE_STRIKEOUT };
4921
yield return new object[] { new Font("Arial", 8.25f, FontStyle.Underline), 165,
CFE_EFFECTS
.CFE_UNDERLINE };
4922
yield return new object[] { new Font("Arial", 8.25f, FontStyle.Bold | FontStyle.Italic | FontStyle.Regular | FontStyle.Strikeout | FontStyle.Underline, GraphicsUnit.Point, 10), 165,
CFE_EFFECTS
.CFE_BOLD |
CFE_EFFECTS
.CFE_ITALIC |
CFE_EFFECTS
.CFE_UNDERLINE |
CFE_EFFECTS
.CFE_STRIKEOUT };
4941
Assert.Equal(
CFE_EFFECTS
.CFE_AUTOBACKCOLOR |
CFE_EFFECTS
.CFE_AUTOCOLOR | (
CFE_EFFECTS
)expectedEffects, format.dwEffects);
5632
yield return new object[] { 0,
CFE_EFFECTS
.CFE_PROTECTED, false };
5633
yield return new object[] { 0,
CFE_EFFECTS
.CFE_PROTECTED |
CFE_EFFECTS
.CFE_ALLCAPS, false };
5635
yield return new object[] { CFM_MASK.CFM_PROTECTED,
CFE_EFFECTS
.CFE_PROTECTED, true };
5636
yield return new object[] { CFM_MASK.CFM_PROTECTED,
CFE_EFFECTS
.CFE_PROTECTED |
CFE_EFFECTS
.CFE_ALLCAPS, true };
5637
yield return new object[] { CFM_MASK.CFM_PROTECTED,
CFE_EFFECTS
.CFE_ALLCAPS, false };
5638
yield return new object[] { CFM_MASK.CFM_ALLCAPS,
CFE_EFFECTS
.CFE_PROTECTED, false };
5651
dwEffects = (
CFE_EFFECTS
)effects
5748
Assert.Equal(value, (format.dwEffects &
CFE_EFFECTS
.CFE_PROTECTED) != 0);
System.Windows.Forms.UI.IntegrationTests (1)
RichTextBoxTests.cs (1)
203
dwEffects =
CFE_EFFECTS
.CFE_LINK,
WinFormsControlsTest (1)
RichTextBoxes.cs (1)
47
dwEffects =
CFE_EFFECTS
.CFE_LINK,