297 references to RichTextBoxConstants
System.Windows.Forms (297)
winforms\Managed\System\WinForms\MessageDecoder.cs (72)
240case RichTextBoxConstants.EM_GETLIMITTEXT: text = "EM_GETLIMITTEXT"; break; 242case RichTextBoxConstants.EM_POSFROMCHAR: text = "EM_POSFROMCHAR"; break; 243case RichTextBoxConstants.EM_CHARFROMPOS: text = "EM_CHARFROMPOS"; break; 245case RichTextBoxConstants.EM_SCROLLCARET: text = "EM_SCROLLCARET"; break; 246case RichTextBoxConstants.EM_CANPASTE: text = "EM_CANPASTE"; break; 247case RichTextBoxConstants.EM_DISPLAYBAND: text = "EM_DISPLAYBAND"; break; 248case RichTextBoxConstants.EM_EXGETSEL: text = "EM_EXGETSEL"; break; 249case RichTextBoxConstants.EM_EXLIMITTEXT: text = "EM_EXLIMITTEXT"; break; 250case RichTextBoxConstants.EM_EXLINEFROMCHAR: text = "EM_EXLINEFROMCHAR"; break; 251case RichTextBoxConstants.EM_EXSETSEL: text = "EM_EXSETSEL"; break; 252case RichTextBoxConstants.EM_FINDTEXT: text = "EM_FINDTEXT"; break; 253case RichTextBoxConstants.EM_FORMATRANGE: text = "EM_FORMATRANGE"; break; 254case RichTextBoxConstants.EM_GETCHARFORMAT: text = "EM_GETCHARFORMAT"; break; 255case RichTextBoxConstants.EM_GETEVENTMASK: text = "EM_GETEVENTMASK"; break; 256case RichTextBoxConstants.EM_GETOLEINTERFACE: text = "EM_GETOLEINTERFACE"; break; 257case RichTextBoxConstants.EM_GETPARAFORMAT: text = "EM_GETPARAFORMAT"; break; 258case RichTextBoxConstants.EM_GETSELTEXT: text = "EM_GETSELTEXT"; break; 259case RichTextBoxConstants.EM_HIDESELECTION: text = "EM_HIDESELECTION"; break; 260case RichTextBoxConstants.EM_PASTESPECIAL: text = "EM_PASTESPECIAL"; break; 261case RichTextBoxConstants.EM_REQUESTRESIZE: text = "EM_REQUESTRESIZE"; break; 262case RichTextBoxConstants.EM_SELECTIONTYPE: text = "EM_SELECTIONTYPE"; break; 263case RichTextBoxConstants.EM_SETBKGNDCOLOR: text = "EM_SETBKGNDCOLOR"; break; 264case RichTextBoxConstants.EM_SETCHARFORMAT: text = "EM_SETCHARFORMAT"; break; 265case RichTextBoxConstants.EM_SETEVENTMASK: text = "EM_SETEVENTMASK"; break; 266case RichTextBoxConstants.EM_SETOLECALLBACK: text = "EM_SETOLECALLBACK"; break; 267case RichTextBoxConstants.EM_SETPARAFORMAT: text = "EM_SETPARAFORMAT"; break; 268case RichTextBoxConstants.EM_SETTARGETDEVICE: text = "EM_SETTARGETDEVICE"; break; 269case RichTextBoxConstants.EM_STREAMIN: text = "EM_STREAMIN"; break; 270case RichTextBoxConstants.EM_STREAMOUT: text = "EM_STREAMOUT"; break; 271case RichTextBoxConstants.EM_GETTEXTRANGE: text = "EM_GETTEXTRANGE"; break; 272case RichTextBoxConstants.EM_FINDWORDBREAK: text = "EM_FINDWORDBREAK"; break; 273case RichTextBoxConstants.EM_SETOPTIONS: text = "EM_SETOPTIONS"; break; 274case RichTextBoxConstants.EM_GETOPTIONS: text = "EM_GETOPTIONS"; break; 275case RichTextBoxConstants.EM_FINDTEXTEX: text = "EM_FINDTEXTEX"; break; 276case RichTextBoxConstants.EM_GETWORDBREAKPROCEX: text = "EM_GETWORDBREAKPROCEX"; break; 277case RichTextBoxConstants.EM_SETWORDBREAKPROCEX: text = "EM_SETWORDBREAKPROCEX"; break; 280case RichTextBoxConstants.EM_SETUNDOLIMIT: text = "EM_SETUNDOLIMIT"; break; 281case RichTextBoxConstants.EM_REDO: text = "EM_REDO"; break; 282case RichTextBoxConstants.EM_CANREDO: text = "EM_CANREDO"; break; 283case RichTextBoxConstants.EM_GETUNDONAME: text = "EM_GETUNDONAME"; break; 284case RichTextBoxConstants.EM_GETREDONAME: text = "EM_GETREDONAME"; break; 285case RichTextBoxConstants.EM_STOPGROUPTYPING: text = "EM_STOPGROUPTYPING"; break; 287case RichTextBoxConstants.EM_SETTEXTMODE: text = "EM_SETTEXTMODE"; break; 288case RichTextBoxConstants.EM_GETTEXTMODE: text = "EM_GETTEXTMODE"; break; 290case RichTextBoxConstants.EM_AUTOURLDETECT: text = "EM_AUTOURLDETECT"; break; 291case RichTextBoxConstants.EM_GETAUTOURLDETECT: text = "EM_GETAUTOURLDETECT"; break; 292case RichTextBoxConstants.EM_SETPALETTE: text = "EM_SETPALETTE"; break; 293case RichTextBoxConstants.EM_GETTEXTEX: text = "EM_GETTEXTEX"; break; 294case RichTextBoxConstants.EM_GETTEXTLENGTHEX: text = "EM_GETTEXTLENGTHEX"; break; 297case RichTextBoxConstants.EM_SETPUNCTUATION: text = "EM_SETPUNCTUATION"; break; 298case RichTextBoxConstants.EM_GETPUNCTUATION: text = "EM_GETPUNCTUATION"; break; 299case RichTextBoxConstants.EM_SETWORDWRAPMODE: text = "EM_SETWORDWRAPMODE"; break; 300case RichTextBoxConstants.EM_GETWORDWRAPMODE: text = "EM_GETWORDWRAPMODE"; break; 301case RichTextBoxConstants.EM_SETIMECOLOR: text = "EM_SETIMECOLOR"; break; 302case RichTextBoxConstants.EM_GETIMECOLOR: text = "EM_GETIMECOLOR"; break; 303case RichTextBoxConstants.EM_SETIMEOPTIONS: text = "EM_SETIMEOPTIONS"; break; 304case RichTextBoxConstants.EM_GETIMEOPTIONS: text = "EM_GETIMEOPTIONS"; break; 305case RichTextBoxConstants.EM_CONVPOSITION: text = "EM_CONVPOSITION"; break; 307case RichTextBoxConstants.EM_SETLANGOPTIONS: text = "EM_SETLANGOPTIONS"; break; 308case RichTextBoxConstants.EM_GETLANGOPTIONS: text = "EM_GETLANGOPTIONS"; break; 309case RichTextBoxConstants.EM_GETIMECOMPMODE: text = "EM_GETIMECOMPMODE"; break; 311case RichTextBoxConstants.EM_FINDTEXTW: text = "EM_FINDTEXTW"; break; 312case RichTextBoxConstants.EM_FINDTEXTEXW: text = "EM_FINDTEXTEXW"; break; 315case RichTextBoxConstants.EM_RECONVERSION: text = "EM_RECONVERSION"; break; 316case RichTextBoxConstants.EM_SETIMEMODEBIAS: text = "EM_SETIMEMODEBIAS"; break; 317case RichTextBoxConstants.EM_GETIMEMODEBIAS: text = "EM_GETIMEMODEBIAS"; break; 320case RichTextBoxConstants.EM_SETBIDIOPTIONS: text = "EM_SETBIDIOPTIONS"; break; 321case RichTextBoxConstants.EM_GETBIDIOPTIONS: text = "EM_GETBIDIOPTIONS"; break; 323case RichTextBoxConstants.EM_SETTYPOGRAPHYOPTIONS: text = "EM_SETTYPOGRAPHYOPTIONS"; break; 324case RichTextBoxConstants.EM_GETTYPOGRAPHYOPTIONS: text = "EM_GETTYPOGRAPHYOPTIONS"; break; 327case RichTextBoxConstants.EM_SETEDITSTYLE: text = "EM_SETEDITSTYLE"; break; 328case RichTextBoxConstants.EM_GETEDITSTYLE: text = "EM_GETEDITSTYLE"; break;
winforms\Managed\System\WinForms\RichTextBox.cs (220)
232SendMessage(RichTextBoxConstants.EM_SETOPTIONS, 233value ? RichTextBoxConstants.ECOOP_OR : RichTextBoxConstants.ECOOP_XOR, 234RichTextBoxConstants.ECO_AUTOWORDSELECTION); 345b = unchecked( (int) (long)SendMessage(RichTextBoxConstants.EM_CANREDO, 0, 0)) != 0; 362string richEditControlDllVersion = LocalAppContextSwitches.DoNotLoadLatestRichEditControl ? RichTextBoxConstants.DLL_RICHEDIT : RichTextBoxConstants.DLL_RICHEDIT_41; 399cp.ClassName = LocalAppContextSwitches.DoNotLoadLatestRichEditControl ? RichTextBoxConstants.WC_RICHEDITA : RichTextBoxConstants.WC_RICHEDITA_41; 402cp.ClassName = LocalAppContextSwitches.DoNotLoadLatestRichEditControl ? RichTextBoxConstants.WC_RICHEDITW : RichTextBoxConstants.WC_RICHEDITW_41; 406if (((int)ScrollBars & RichTextBoxConstants.RTB_HORIZ) != 0 && !WordWrap) { 409if (((int)ScrollBars & RichTextBoxConstants.RTB_FORCE) != 0) 410cp.Style |= RichTextBoxConstants.ES_DISABLENOSCROLL; 413if (((int)ScrollBars & RichTextBoxConstants.RTB_VERT) != 0) { 415if (((int)ScrollBars & RichTextBoxConstants.RTB_FORCE) != 0) 416cp.Style |= RichTextBoxConstants.ES_DISABLENOSCROLL; 453this.SendMessage(RichTextBoxConstants.EM_AUTOURLDETECT, value ? 1 : 0, 0); 597opt = (RichTextBoxLanguageOptions)UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_GETLANGOPTIONS, 0, 0); 610UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_SETLANGOPTIONS, 0, (int) value); 670n = unchecked( (int) (long)SendMessage(RichTextBoxConstants.EM_GETREDONAME, 0, 0)); 720SendMessage(RichTextBoxConstants.EM_SETTARGETDEVICE, hDC, (IntPtr)Pixel2Twip(hDC, value, true)); 746return StreamOut(RichTextBoxConstants.SF_RTF); 751return StreamOut(RichTextBoxConstants.SF_RTF); 766StreamIn(value, RichTextBoxConstants.SF_RTF); 829pf.rgxTabs = new int[RichTextBoxConstants.MAX_TAB_STOPS]; 832UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_GETPARAFORMAT, 0, pf); 835if ((RichTextBoxConstants.PFM_ALIGNMENT & pf.dwMask) != 0) { 837case RichTextBoxConstants.PFA_LEFT: 841case RichTextBoxConstants.PFA_RIGHT: 845case RichTextBoxConstants.PFA_CENTER: 862pf.dwMask = RichTextBoxConstants.PFM_ALIGNMENT; 866pf.wAlignment = RichTextBoxConstants.PFA_LEFT; 870pf.wAlignment = RichTextBoxConstants.PFA_RIGHT; 874pf.wAlignment = RichTextBoxConstants.PFA_CENTER; 879UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_SETPARAFORMAT, 0, pf); 900pf.rgxTabs = new int[RichTextBoxConstants.MAX_TAB_STOPS]; 903UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_GETPARAFORMAT, 0, pf); 906if ((RichTextBoxConstants.PFM_NUMBERING & pf.dwMask) != 0) { 907if (RichTextBoxConstants.PFN_BULLET == pf.wNumbering) { 922pf.dwMask = RichTextBoxConstants.PFM_NUMBERING | RichTextBoxConstants.PFM_OFFSET; 929pf.wNumbering = RichTextBoxConstants.PFN_BULLET; 933UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_SETPARAFORMAT, 0, pf); 956if ((cf.dwMask & RichTextBoxConstants.CFM_OFFSET) != 0) { 973cf.dwMask = RichTextBoxConstants.CFM_OFFSET; 981UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_SETCHARFORMAT, RichTextBoxConstants.SCF_SELECTION, cf); 1003if ((cf.dwMask & RichTextBoxConstants.CFM_COLOR) != 0) 1011cf.dwMask = RichTextBoxConstants.CFM_COLOR; 1016UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_SETCHARFORMAT, RichTextBoxConstants.SCF_SELECTION, cf); 1037if ((cf2.dwEffects & RichTextBoxConstants.CFE_AUTOBACKCOLOR) != 0) { 1040else if ((cf2.dwMask & RichTextBoxConstants.CFM_BACKCOLOR) != 0) { 1059cf2.dwEffects = RichTextBoxConstants.CFE_AUTOBACKCOLOR; 1063cf2.dwMask = RichTextBoxConstants.CFM_BACKCOLOR; 1067UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_SETCHARFORMAT, RichTextBoxConstants.SCF_SELECTION, cf2); 1111pf.rgxTabs = new int[RichTextBoxConstants.MAX_TAB_STOPS]; 1114UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_GETPARAFORMAT, 0, pf); 1117if ((RichTextBoxConstants.PFM_OFFSET & pf.dwMask) != 0) 1126pf.dwMask = RichTextBoxConstants.PFM_OFFSET; 1130UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_SETPARAFORMAT, 0, pf); 1152pf.rgxTabs = new int[RichTextBoxConstants.MAX_TAB_STOPS]; 1155UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_GETPARAFORMAT, 0, pf); 1158if ((RichTextBoxConstants.PFM_STARTINDENT & pf.dwMask) != 0) 1167pf.dwMask = RichTextBoxConstants.PFM_STARTINDENT; 1171UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_SETPARAFORMAT, 0, pf); 1221return GetCharFormat(RichTextBoxConstants.CFM_PROTECTED, RichTextBoxConstants.CFM_PROTECTED) == RichTextBoxSelectionAttribute.All; 1225SetCharFormat(RichTextBoxConstants.CFM_PROTECTED, value ? RichTextBoxConstants.CFE_PROTECTED : 0, RichTextBoxSelectionAttribute.All); 1253return StreamOut(RichTextBoxConstants.SFF_SELECTION | RichTextBoxConstants.SF_RTF); 1258StreamIn(value, RichTextBoxConstants.SFF_SELECTION | RichTextBoxConstants.SF_RTF); 1281pf.rgxTabs = new int[RichTextBoxConstants.MAX_TAB_STOPS]; 1284UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_GETPARAFORMAT, 0, pf); 1287if ((RichTextBoxConstants.PFM_RIGHTINDENT & pf.dwMask) != 0) 1298pf.dwMask = RichTextBoxConstants.PFM_RIGHTINDENT; 1302UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_SETPARAFORMAT, 0, pf); 1321pf.rgxTabs = new int[RichTextBoxConstants.MAX_TAB_STOPS]; 1324UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_GETPARAFORMAT, 0, pf); 1327if ((RichTextBoxConstants.PFM_TABSTOPS & pf.dwMask) != 0) { 1337if (value != null && value.Length > RichTextBoxConstants.MAX_TAB_STOPS) 1342pf.rgxTabs = new int[RichTextBoxConstants.MAX_TAB_STOPS]; 1346UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_GETPARAFORMAT, 0, pf); 1349pf.dwMask = RichTextBoxConstants.PFM_TABSTOPS; 1354UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_SETPARAFORMAT, 0, pf); 1373String text = StreamOut(RichTextBoxConstants.SFF_SELECTION | RichTextBoxConstants.SF_TEXT | RichTextBoxConstants.SF_UNICODE); 1378StreamIn(value, RichTextBoxConstants.SFF_SELECTION | RichTextBoxConstants.SF_TEXT | RichTextBoxConstants.SF_UNICODE); 1398n = unchecked( (int) (long)SendMessage(RichTextBoxConstants.EM_SELECTIONTYPE, 0, 0)); 1423SendMessage(RichTextBoxConstants.EM_SETOPTIONS, 1424value ? RichTextBoxConstants.ECOOP_OR : 1425RichTextBoxConstants.ECOOP_XOR, 1426RichTextBoxConstants.ECO_SELECTIONBAR); 1467return StreamOut(RichTextBoxConstants.SF_TEXT | RichTextBoxConstants.SF_UNICODE); 1481StreamIn(value, RichTextBoxConstants.SF_TEXT | RichTextBoxConstants.SF_UNICODE); 1507gtl.flags = RichTextBoxConstants.GTL_NUMCHARS; 1518return unchecked( (int) (long)UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_GETTEXTLENGTHEX, gtl, 0 /*ignored*/)); 1540n = unchecked( (int) (long)SendMessage(RichTextBoxConstants.EM_GETUNDONAME, 0, 0)); 1582SendMessage(RichTextBoxConstants.EM_GETZOOM, ref numerator, ref denominator); 1800b = unchecked( (int) (long)SendMessage(RichTextBoxConstants.EM_CANPASTE, clipFormat.Id, 0)) != 0; 2014findOptions |= RichTextBoxConstants.FR_WHOLEWORD; 2016findOptions |= RichTextBoxConstants.FR_MATCHCASE; 2021findOptions |= RichTextBoxConstants.FR_DOWN; 2027position = (int)UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_FINDTEXT, findOptions, ft); 2065UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_EXSETSEL, 0, chrg); 2170len = (int)UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_GETTEXTRANGE, 0, txrg); 2232if ((cf.dwMask & RichTextBoxConstants.CFM_COLOR) != 0 2238cf.dwMask = RichTextBoxConstants.CFM_COLOR; 2241return SetCharFormat(RichTextBoxConstants.SCF_ALL, cf); 2247UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_GETCHARFORMAT, fSelection ? RichTextBoxConstants.SCF_SELECTION : RichTextBoxConstants.SCF_DEFAULT, cf); 2253UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_GETCHARFORMAT, fSelection ? RichTextBoxConstants.SCF_SELECTION : RichTextBoxConstants.SCF_DEFAULT, cf2); 2281if ((cf.dwMask & RichTextBoxConstants.CFM_FACE) == 0) { 2292if ((cf.dwMask & RichTextBoxConstants.CFM_SIZE) != 0) { 2300if ((cf.dwMask & RichTextBoxConstants.CFM_BOLD) != 0 && (cf.dwEffects & RichTextBoxConstants.CFE_BOLD) != 0) 2302if ((cf.dwMask & RichTextBoxConstants.CFM_ITALIC) != 0 && (cf.dwEffects & RichTextBoxConstants.CFE_ITALIC) != 0) 2304if ((cf.dwMask & RichTextBoxConstants.CFM_STRIKEOUT) != 0 && (cf.dwEffects & RichTextBoxConstants.CFE_STRIKEOUT) != 0) 2306if ((cf.dwMask & RichTextBoxConstants.CFM_UNDERLINE) != 0 && (cf.dwEffects & RichTextBoxConstants.CFE_UNDERLINE) != 0) 2361return unchecked( (int) (long)SendMessage(RichTextBoxConstants.EM_EXLINEFROMCHAR, 0, index)); 2440flags = RichTextBoxConstants.SF_RTF; 2444flags = RichTextBoxConstants.SF_TEXT; 2447flags = RichTextBoxConstants.SF_UNICODE | RichTextBoxConstants.SF_TEXT; 2464SendMessage(RichTextBoxConstants.EM_SETBKGNDCOLOR, 0, ColorTranslator.ToWin32(BackColor)); 2544SendMessage(RichTextBoxConstants.EM_SETEVENTMASK, 2546RichTextBoxConstants.ENM_PROTECTED | RichTextBoxConstants.ENM_SELCHANGE | 2547RichTextBoxConstants.ENM_DROPFILES | RichTextBoxConstants.ENM_REQUESTRESIZE | 2548RichTextBoxConstants.ENM_IMECHANGE | RichTextBoxConstants.ENM_CHANGE | 2549RichTextBoxConstants.ENM_UPDATE | RichTextBoxConstants.ENM_SCROLL | 2550RichTextBoxConstants.ENM_KEYEVENTS | RichTextBoxConstants.ENM_MOUSEEVENTS | 2551RichTextBoxConstants.ENM_SCROLLEVENTS | RichTextBoxConstants.ENM_LINK); 2560this.SendMessage(RichTextBoxConstants.EM_AUTOURLDETECT, DetectUrls ? 1 : 0, 0); 2568SendMessage(RichTextBoxConstants.EM_SETBKGNDCOLOR, 0, ColorTranslator.ToWin32(BackColor)); 2604UnsafeNativeMethods.PostMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_SETOPTIONS, (IntPtr)RichTextBoxConstants.ECOOP_OR, 2605(IntPtr)RichTextBoxConstants.ECO_SELECTIONBAR); 2720UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_PASTESPECIAL, clipFormat.Id, rps); 2741SendMessage(RichTextBoxConstants.EM_REDO, 0, 0); 2786flags = RichTextBoxConstants.SF_RTF; 2789flags = RichTextBoxConstants.SF_TEXT; 2792flags = RichTextBoxConstants.SF_UNICODE | RichTextBoxConstants.SF_TEXT; 2795flags = RichTextBoxConstants.SF_RTFNOOBJS; 2798flags = RichTextBoxConstants.SF_TEXTIZED; 2830SendMessage(RichTextBoxConstants.EM_SETZOOM, numerator, denominator); 2873return IntPtr.Zero != UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_SETCHARFORMAT, RichTextBoxConstants.SCF_SELECTION, cf); 2879return IntPtr.Zero != UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_SETCHARFORMAT, charRange, cf); 2890int dwMask = RichTextBoxConstants.CFM_FACE | RichTextBoxConstants.CFM_SIZE | RichTextBoxConstants.CFM_BOLD | 2891RichTextBoxConstants.CFM_ITALIC | RichTextBoxConstants.CFM_STRIKEOUT | RichTextBoxConstants.CFM_UNDERLINE | 2892RichTextBoxConstants.CFM_CHARSET; 2895if (value.Bold) dwEffects |= RichTextBoxConstants.CFE_BOLD; 2896if (value.Italic) dwEffects |= RichTextBoxConstants.CFE_ITALIC; 2897if (value.Strikeout) dwEffects |= RichTextBoxConstants.CFE_STRIKEOUT; 2898if (value.Underline) dwEffects |= RichTextBoxConstants.CFE_UNDERLINE; 2912UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_SETCHARFORMAT, selectionOnly ? RichTextBoxConstants.SCF_SELECTION : RichTextBoxConstants.SCF_ALL, cfA); 2926UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_SETCHARFORMAT, selectionOnly ? RichTextBoxConstants.SCF_SELECTION : RichTextBoxConstants.SCF_ALL, cfW); 2980if ((RichTextBoxConstants.SFF_SELECTION & flags) != 0) { 3000if ((flags & RichTextBoxConstants.SF_UNICODE) != 0) { 3015if ((flags & RichTextBoxConstants.SFF_SELECTION) == 0) { 3017UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_EXSETSEL, 0, cr); 3027if ((flags & RichTextBoxConstants.SF_RTF) != 0) { 3042if ((flags & RichTextBoxConstants.SF_UNICODE) != 0) { 3048if ((flags & RichTextBoxConstants.SF_RTF) != 0) { 3060SendMessage(RichTextBoxConstants.EM_EXLIMITTEXT, 0, Int32.MaxValue); 3068UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_STREAMIN, flags, es64); 3074UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_STREAMIN, flags, es); 3117if ((flags & RichTextBoxConstants.SF_UNICODE) != 0) { 3141if ((flags & RichTextBoxConstants.SF_UNICODE) != 0) { 3147if ((flags & RichTextBoxConstants.SF_RTF) != 0) { 3165UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_STREAMOUT, flags, es64); 3171UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_STREAMOUT, flags, es); 3268this.AllowOleObjects = (0 != unchecked( (int) (long)SendMessage(RichTextBoxConstants.EM_SETQUERYRTFOBJ, 0, 1))); 3282UnsafeNativeMethods.SendCallbackMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_SETOLECALLBACK, IntPtr.Zero, pRichEditOleCallback); 3303SendMessage(RichTextBoxConstants.EM_SETBKGNDCOLOR, 0, ColorTranslator.ToWin32(BackColor)); 3383int len = (int)UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_GETTEXTRANGE, 0, txrg); 3395SendMessage(RichTextBoxConstants.EM_EXLIMITTEXT, 0, MaxLength); 3438case RichTextBoxConstants.EN_LINK: 3441case RichTextBoxConstants.EN_DROPFILES: 3469case RichTextBoxConstants.EN_REQUESTRESIZE: 3479case RichTextBoxConstants.EN_SELCHANGE: 3484case RichTextBoxConstants.EN_PROTECTED: { 3498case RichTextBoxConstants.EM_SETCHARFORMAT: 3502if ((charFormat.dwMask & RichTextBoxConstants.CFM_PROTECTED) != 0) { 3510case RichTextBoxConstants.EM_SETPARAFORMAT: 3514case RichTextBoxConstants.EM_STREAMIN: 3517if ((unchecked( (int) (long)enprotected.wParam) & RichTextBoxConstants.SFF_SELECTION) != 0) 3526case RichTextBoxConstants.EM_EXLIMITTEXT: 3619int compMode = unchecked( (int) (long)SendMessage(RichTextBoxConstants.EM_GETIMECOMPMODE, 0, 0)); 3620if (RichTextBoxConstants.ICM_NOTOPEN != compMode) {
winforms\Managed\System\WinForms\RichTextBoxScrollBars.cs (4)
41Horizontal = RichTextBoxConstants.RTB_HORIZ, 51Vertical = RichTextBoxConstants.RTB_VERT, 69ForcedHorizontal = RichTextBoxConstants.RTB_FORCE | Horizontal, 77ForcedVertical = RichTextBoxConstants.RTB_FORCE | Vertical,
winforms\Managed\System\WinForms\TextBoxBase.cs (1)
1836if (UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_GETOLEINTERFACE, 0, out editOle) != 0) {