1. How can I insert a line
| C# |
|---|
axEdit1.InsertText(" - insert the line as the first - \\r\\n",1);
|
2. How can I add a line
| C# |
|---|
axEdit1.InsertText(" - insert the line as the last - \\r\\n",null);
|
3. How do I remove the control's border
| C# |
|---|
axEdit1.Appearance = EXEDITLib.AppearanceEnum.exNone; |
4. How do I change the control's border, using your EBN files
| C# |
|---|
axEdit1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); axEdit1.Appearance = (EXEDITLib.AppearanceEnum)16777216; |
5. How do I put a picture on the control's background
| C# |
|---|
(axEdit1.GetOcx() as EXEDITLib.Edit).Picture = (axEdit1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)") as stdole.IPictureDisp);
|
6. How do I put a picture on the control's left top corner
| C# |
|---|
(axEdit1.GetOcx() as EXEDITLib.Edit).Picture = (axEdit1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)") as stdole.IPictureDisp);
axEdit1.PictureDisplay = EXEDITLib.PictureDisplayEnum.exUpperLeft;
|
7. How do I put a picture on the control's right top corner
| C# |
|---|
(axEdit1.GetOcx() as EXEDITLib.Edit).Picture = (axEdit1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)") as stdole.IPictureDisp);
axEdit1.PictureDisplay = EXEDITLib.PictureDisplayEnum.exUpperRight;
|
8. How do I put a picture on the control's center top side
| C# |
|---|
(axEdit1.GetOcx() as EXEDITLib.Edit).Picture = (axEdit1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)") as stdole.IPictureDisp);
axEdit1.PictureDisplay = EXEDITLib.PictureDisplayEnum.exUpperCenter;
|
9. How do I put a picture on the control's center left bottom side
| C# |
|---|
(axEdit1.GetOcx() as EXEDITLib.Edit).Picture = (axEdit1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)") as stdole.IPictureDisp);
axEdit1.PictureDisplay = EXEDITLib.PictureDisplayEnum.exLowerLeft;
|
10. How do I put a picture on the control's center right bottom side
| C# |
|---|
(axEdit1.GetOcx() as EXEDITLib.Edit).Picture = (axEdit1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)") as stdole.IPictureDisp);
axEdit1.PictureDisplay = EXEDITLib.PictureDisplayEnum.exLowerRight;
|
11. How do I resize/stretch a picture on the control's background
| C# |
|---|
(axEdit1.GetOcx() as EXEDITLib.Edit).Picture = (axEdit1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)") as stdole.IPictureDisp);
axEdit1.PictureDisplay = EXEDITLib.PictureDisplayEnum.exStretch;
|
12. How do I put a picture on the center of the control
| C# |
|---|
(axEdit1.GetOcx() as EXEDITLib.Edit).Picture = (axEdit1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)") as stdole.IPictureDisp);
axEdit1.PictureDisplay = EXEDITLib.PictureDisplayEnum.exMiddleCenter;
|
13. How can I change the control's font
| C# |
|---|
axEdit1.Font.Name = "Verdana"; |
14. How do I change the control's background color
| C# |
|---|
axEdit1.BackColor = Color.FromArgb(200,200,200); |
15. How do I change the control's foreground color
| C# |
|---|
axEdit1.ForeColor = Color.FromArgb(255,0,0); |
16. Can I display an additional buttons in the scroll bar
| C# |
|---|
axEdit1.set_ScrollPartVisible(EXEDITLib.ScrollBarEnum.exHScroll,EXEDITLib.ScrollPartEnum.exLeftB1Part,true); axEdit1.set_ScrollPartVisible(EXEDITLib.ScrollBarEnum.exHScroll,EXEDITLib.ScrollPartEnum.exLeftB2Part,true); axEdit1.set_ScrollPartVisible(EXEDITLib.ScrollBarEnum.exHScroll,EXEDITLib.ScrollPartEnum.exRightB6Part,true); axEdit1.set_ScrollPartVisible(EXEDITLib.ScrollBarEnum.exHScroll,EXEDITLib.ScrollPartEnum.exRightB5Part,true); |
17. I need to add a button in the scroll bar. Is this possible
| C# |
|---|
axEdit1.set_ScrollPartVisible(EXEDITLib.ScrollBarEnum.exHScroll,EXEDITLib.ScrollPartEnum.exLeftB1Part,true); axEdit1.set_ScrollPartCaption(EXEDITLib.ScrollBarEnum.exHScroll,EXEDITLib.ScrollPartEnum.exLeftB1Part,"1"); |
18. How do I assign an icon to the button in the scrollbar
| C# |
|---|
axEdit1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0" +
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" +
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" +
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
axEdit1.set_ScrollPartVisible(EXEDITLib.ScrollBarEnum.exHScroll,EXEDITLib.ScrollPartEnum.exLeftB1Part,true);
axEdit1.set_ScrollPartCaption(EXEDITLib.ScrollBarEnum.exHScroll,EXEDITLib.ScrollPartEnum.exLeftB1Part,"<img>1</img>");
axEdit1.ScrollHeight = 18;
axEdit1.ScrollButtonWidth = 18;
|
19. How do I assign a tooltip to a scrollbar
| C# |
|---|
axEdit1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); axEdit1.set_ScrollToolTip(EXEDITLib.ScrollBarEnum.exHScroll,"This is a <img>16777216</img>tooltip being shown when you click and drag the thumb in the horiz" + "ontal scroll bar"); |
20. How can I display my text on the scroll bar
| C# |
|---|
axEdit1.set_ScrollPartCaption(EXEDITLib.ScrollBarEnum.exHScroll,EXEDITLib.ScrollPartEnum.exThumbPart,"this is just a text"); axEdit1.set_ScrollThumbSize(EXEDITLib.ScrollBarEnum.exHScroll,96); |
21. How can I display my text on the scroll bar, using a different font
| C# |
|---|
axEdit1.set_ScrollPartCaption(EXEDITLib.ScrollBarEnum.exHScroll,EXEDITLib.ScrollPartEnum.exThumbPart,"This is just a text"); axEdit1.get_ScrollFont(EXEDITLib.ScrollBarEnum.exHScroll).Size = 12; axEdit1.set_ScrollThumbSize(EXEDITLib.ScrollBarEnum.exHScroll,128); axEdit1.ScrollHeight = 24195; axEdit1.set_ScrollPartCaption(EXEDITLib.ScrollBarEnum.exHScroll,EXEDITLib.ScrollPartEnum.exThumbPart,"This is <s><font Tahoma;12> just </font></s> text"); axEdit1.ScrollHeight = 20; |
22. How do I enlarge or change the size of the control's scrollbars
| C# |
|---|
axEdit1.ScrollHeight = 18; axEdit1.ScrollWidth = 18; axEdit1.ScrollButtonWidth = 18; axEdit1.ScrollButtonHeight = 18; |
23. The thumb size seems to be very small. Can I make it bigger
| C# |
|---|
axEdit1.set_ScrollThumbSize(EXEDITLib.ScrollBarEnum.exHScroll,164); |
24. Can I change the order of the buttons in the scroll bar
| C# |
|---|
axEdit1.set_ScrollOrderParts(EXEDITLib.ScrollBarEnum.exHScroll,"t,l,r"); axEdit1.set_ScrollOrderParts(EXEDITLib.ScrollBarEnum.exVScroll,"t,l,r"); |
25. How do I show the tooltip quicker
| C# |
|---|
axEdit1.ToolTipDelay = 1;
axEdit1.AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",null);
axEdit1.Refresh();
|
26. How do I disable showing the tooltip for all control
| C# |
|---|
axEdit1.ToolTipDelay = 0;
axEdit1.AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",null);
axEdit1.Refresh();
|
27. How do I let the tooltip being displayed longer
| C# |
|---|
axEdit1.ToolTipPopDelay = 10000;
axEdit1.AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",null);
axEdit1.Refresh();
|
28. I've seen that the width of the tooltip is variable. Can I make it larger
| C# |
|---|
axEdit1.ToolTipWidth = 328;
axEdit1.AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",null);
axEdit1.Refresh();
|
29. Can I change the font for the tooltip
| C# |
|---|
axEdit1.ToolTipDelay = 1;
stdole.IFontDisp var_StdFont = axEdit1.ToolTipFont;
var_StdFont.Name = "Tahoma";
var_StdFont.Size = 14;
axEdit1.ToolTipWidth = 364;
axEdit1.AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",null);
axEdit1.Refresh();
|
30. How do I call your x-script language
| C# |
|---|
axEdit1.Template = "BackColor = RGB(255,0,0)"; |
31. How do I call your x-script language
| C# |
|---|
axEdit1.ExecuteTemplate("BackColor = RGB(255,0,0)");
|
32. Can I change the default border of the tooltip, using your EBN files
| C# |
|---|
axEdit1.ToolTipDelay = 1;
axEdit1.ToolTipWidth = 364;
axEdit1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn");
axEdit1.set_Background(EXEDITLib.BackgroundPartEnum.exToolTipAppearance,16777216);
axEdit1.AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",null);
axEdit1.Refresh();
|
33. Can I change the background color for the tooltip
| C# |
|---|
axEdit1.ToolTipDelay = 1;
axEdit1.ToolTipWidth = 364;
axEdit1.set_Background(EXEDITLib.BackgroundPartEnum.exToolTipBackColor,255);
axEdit1.AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",null);
axEdit1.Refresh();
|
34. Can I change the forecolor for the tooltip
| C# |
|---|
axEdit1.ToolTipDelay = 1;
axEdit1.ToolTipWidth = 364;
axEdit1.set_Background(EXEDITLib.BackgroundPartEnum.exToolTipForeColor,255);
axEdit1.AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",null);
axEdit1.Refresh();
|
35. I've seen that you can change the visual appearance for the scroll bar. How can I do that
| C# |
|---|
axEdit1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); axEdit1.VisualAppearance.Add(2,"c:\\exontrol\\images\\pushed.ebn"); axEdit1.VisualAppearance.Add(3,"c:\\exontrol\\images\\hot.ebn"); axEdit1.set_Background(EXEDITLib.BackgroundPartEnum.exSBtn,16777216); axEdit1.set_Background(EXEDITLib.BackgroundPartEnum.exSBtnP,33554432); axEdit1.set_Background(EXEDITLib.BackgroundPartEnum.exSBtnH,50331648); axEdit1.set_Background(EXEDITLib.BackgroundPartEnum.exHSBack,15790320); axEdit1.set_Background(EXEDITLib.BackgroundPartEnum.exVSBack,15790320); axEdit1.set_Background(EXEDITLib.BackgroundPartEnum.exSizeGrip,15790320); |
36. How do I change the visual aspect only for the thumb in the scroll bar, using EBN
| C# |
|---|
axEdit1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); axEdit1.VisualAppearance.Add(2,"c:\\exontrol\\images\\pushed.ebn"); axEdit1.VisualAppearance.Add(3,"c:\\exontrol\\images\\hot.ebn"); axEdit1.set_Background(EXEDITLib.BackgroundPartEnum.exHSThumb,16777216); axEdit1.set_Background(EXEDITLib.BackgroundPartEnum.exHSThumbP,33554432); axEdit1.set_Background(EXEDITLib.BackgroundPartEnum.exHSThumbH,50331648); axEdit1.set_ScrollThumbSize(EXEDITLib.ScrollBarEnum.exHScroll,96); |
37. How do I change the visual aspect for thumb parts in the scroll bars, using EBN
| C# |
|---|
axEdit1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); axEdit1.VisualAppearance.Add(2,"c:\\exontrol\\images\\pushed.ebn"); axEdit1.VisualAppearance.Add(3,"c:\\exontrol\\images\\hot.ebn"); axEdit1.set_Background(EXEDITLib.BackgroundPartEnum.exHSThumb,16777216); axEdit1.set_Background(EXEDITLib.BackgroundPartEnum.exHSThumbP,33554432); axEdit1.set_Background(EXEDITLib.BackgroundPartEnum.exHSThumbH,50331648); axEdit1.set_Background(EXEDITLib.BackgroundPartEnum.exVSThumb,16777216); axEdit1.set_Background(EXEDITLib.BackgroundPartEnum.exVSThumbP,33554432); axEdit1.set_Background(EXEDITLib.BackgroundPartEnum.exVSThumbH,50331648); |
38. How can I change the visual appearance of the horizontal splitter
| C# |
|---|
axEdit1.AllowSplitter = EXEDITLib.SplitterEnum.exBothSplitter; axEdit1.SplitPaneHeight = 128; axEdit1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); axEdit1.set_Background(EXEDITLib.BackgroundPartEnum.exVSplitterApp,16777216); |
39. How can I change the visual appearance of the vertical splitter
| C# |
|---|
axEdit1.AllowSplitter = EXEDITLib.SplitterEnum.exBothSplitter; axEdit1.SplitPaneWidth = 128; axEdit1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); axEdit1.set_Background(EXEDITLib.BackgroundPartEnum.exHSplitterApp,16777216); |
40. How can I change the visual appearance of the splitter
| C# |
|---|
axEdit1.AllowSplitter = EXEDITLib.SplitterEnum.exBothSplitter; axEdit1.SplitPaneWidth = 128; axEdit1.SplitPaneHeight = 128; axEdit1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); axEdit1.VisualAppearance.Add(2,"c:\\exontrol\\images\\pushed.ebn"); axEdit1.set_Background(EXEDITLib.BackgroundPartEnum.exHSplitterApp,16777216); axEdit1.set_Background(EXEDITLib.BackgroundPartEnum.exVSplitterApp,16777216); axEdit1.set_Background(EXEDITLib.BackgroundPartEnum.exISplitterApp,33554432); |
41. How do I disable or enable the control
| C# |
|---|
axEdit1.Enabled = false; |
42. How do I lock the control
| C# |
|---|
axEdit1.Locked = true; |
43. How can I show the bookmark border
| C# |
|---|
axEdit1.BookmarkWidth = 16; |
44. How can I hide the bookmark border
| C# |
|---|
axEdit1.BookmarkWidth = 0; |
45. How can I specify the text being displayed in the control
| C# |
|---|
axEdit1.Text = "new line\\r\\nnew line"; |
46. How can I clear the text
| C# |
|---|
axEdit1.Text = ""; |
47. How can I display or show the number of each line
| C# |
|---|
axEdit1.LineNumberWidth = 32; |
48. How can I hide the number of each line
| C# |
|---|
axEdit1.LineNumberWidth = 0; |
49. How can I disable using the Tab key
| C# |
|---|
axEdit1.UseTabKey = false; |
50. How can I disable adding new TAB characters when the user enters a new line
| C# |
|---|
axEdit1.AutoIndent = false; |
51. How can still display the selected text when the control loses the focus
| C# |
|---|
axEdit1.HideSelection = false; axEdit1.SelLength = 10; |
52. Is there any option to hide the caret or the cursor
| C# |
|---|
axEdit1.ShowCaret = false; |
53. How can I disable displaying the control's context menu
| C# |
|---|
axEdit1.AllowContextMenu = false; |
54. How can change the color for selected text
| C# |
|---|
axEdit1.HideSelection = false; axEdit1.SelLength = 10; axEdit1.SelForeColor = Color.FromArgb(255,0,0); |
55. How can change the color for selected text
| C# |
|---|
axEdit1.HideSelection = false; axEdit1.SelLength = 10; axEdit1.SelBackColor = Color.FromArgb(255,0,0); |
56. How can I disable displaying multiple lines
| C# |
|---|
axEdit1.MultiLine = false; |
57. How can I display only a single line
| C# |
|---|
axEdit1.MultiLine = false; |
62. How can I use it a a simple edit control, without highlighting
| C# |
|---|
axEdit1.EditType = EXEDITLib.EditTypeEnum.exStandard; |
63. How can I display HTML text
| C# |
|---|
axEdit1.EditType = EXEDITLib.EditTypeEnum.exHTML; axEdit1.Text = "<b>just a HTML text</b>\\r\\nnew <s>line</s>"; |
64. How can I avoid changing the colors for keywords or expressions
| C# |
|---|
axEdit1.ApplyColors = false;
axEdit1.AddKeyword("<fgcolor=FF0000><b>class</b></fgcolor>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",null);
axEdit1.Refresh();
|
65. How can I replace the selected text
| C# |
|---|
axEdit1.SelLength = 10; axEdit1.SelText = "-new selection-"; |
66. How can I get the selected text
| C# |
|---|
axEdit1.SelLength = 10; string var_SelText = axEdit1.SelText; |
67. How do I get the number of selected characters
| C# |
|---|
axEdit1.SelLength = 10; axEdit1.HideSelection = false; |
68. How do I get the point where the selection starts
| C# |
|---|
axEdit1.SelStart = 4; axEdit1.SelLength = 10; axEdit1.HideSelection = false; |
69. How do I get the number of lines in the control
| C# |
|---|
int var_Count = axEdit1.Count; |
70. How do I get a line
| C# |
|---|
axEdit1.set_TextLine(1,"new line"); |
71. How do I replace a line
| C# |
|---|
axEdit1.set_TextLine(1,"new line"); |
72. How do I change the line where the caret or the cursor is displayed
| C# |
|---|
axEdit1.CaretLine = 10; |
73. How do I change the character where the caret or the cursor is displayed
| C# |
|---|
axEdit1.CaretPos = 10; |
74. How can I remove or delete a line
| C# |
|---|
axEdit1.DeleteLine(1); |
75. How can I remove or delete all lines
| C# |
|---|
axEdit1.Text = ""; |
76. How can I insert at specified position a new line
| C# |
|---|
axEdit1.InsertText("newline\\r\\n",2);
axEdit1.set_BackColorLine(2,255);
|
77. How can I hide the control's scroll bars
| C# |
|---|
axEdit1.ScrollBars = EXEDITLib.ScrollBarsEnum.exNoScroll; |
78. How can I display only the horizontal scroll bar
| C# |
|---|
axEdit1.ScrollBars = EXEDITLib.ScrollBarsEnum.exHorizontal; |
79. How can I display only the vertical scroll bar
| C# |
|---|
axEdit1.ScrollBars = EXEDITLib.ScrollBarsEnum.exVertical; |
80. How can I display both scroll bars
| C# |
|---|
axEdit1.ScrollBars = EXEDITLib.ScrollBarsEnum.exBoth; |
81. How can I hide the selection
| C# |
|---|
axEdit1.DisplaySelection = false; |
82. I've seen that if I press CTRL + ( I get the matching braket. How can I extend this
| C# |
|---|
axEdit1.OpenBrackets = "<"; axEdit1.CloseBrackets = ">"; |
83. How can I change the size of the tabs characters
| C# |
|---|
axEdit1.TabLength = 8; |
84. How can I refresh the control
| C# |
|---|
axEdit1.AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",null);
axEdit1.Refresh();
|
85. How can I change the color of the bookmark border
| C# |
|---|
axEdit1.BookMarkBackColor = Color.FromArgb(255,0,0); axEdit1.BookMarkBackColor2 = Color.FromArgb(255,0,0); axEdit1.BookmarkWidth = 16; |
86. How can I change the color for the border where the line numbers are displayed
| C# |
|---|
axEdit1.LineNumberForeColor = Color.FromArgb(255,0,0); axEdit1.LineNumberBackColor = Color.FromArgb(0,0,255); axEdit1.LineNumberWidth = 32; |
87. How can I disable or enable the undo-redo feature
| C# |
|---|
axEdit1.AllowUndoRedo = false; |
88. How can I enable my button as the control can perform an UNDO operation
| C# |
|---|
bool var_CanUndo = axEdit1.CanUndo; |
89. How can I enable my button as the control can perform an REDO operation
| C# |
|---|
bool var_CanRedo = axEdit1.CanRedo; |
90. How can I disable or enabled the Find dialog
| C# |
|---|
axEdit1.AllowFind = false; |
91. How can I programmatically find or search for a string
| C# |
|---|
axEdit1.HideSelection = false;
axEdit1.Find("public",EXEDITLib.FindOptionEnum.exSearchDown);
|
92. How can I programmatically find or search for a word only
| C# |
|---|
axEdit1.HideSelection = false;
axEdit1.Find("IDD_DIALOG_INSTALL",EXEDITLib.FindOptionEnum.exMatchWholeWordOnly);
|
93. Does your control support incrementasl search
| C# |
|---|
axEdit1.AllowIncrementalSearch = true; |
94. How can I disable or enable displaying the Replace dialog
| C# |
|---|
axEdit1.AllowReplace = false; |
95. Can I display the lines using an alternate color
| C# |
|---|
axEdit1.BackColorAlternate = Color.FromArgb(255,0,0); |
96. Is there any option to change the color for the line that displays the cursor or the caret
| C# |
|---|
axEdit1.BackColorCaretLine = Color.FromArgb(255,0,0); |
97. How can I change the format to display the numbers
| C# |
|---|
axEdit1.FormatNumbers = "<b><fgcolor=FF0000> </fgcolor></b>";
axEdit1.InsertText("Just numbers: 12 22\\r\\n",1);
|
98. How can I add a bookmark
| C# |
|---|
axEdit1.set_Bookmark(2,true); axEdit1.set_Bookmark(4,true); axEdit1.BookmarkWidth = 16; |
99. How can I remove all bookmarks
| C# |
|---|
axEdit1.set_Bookmark(2,true); axEdit1.set_Bookmark(4,true); axEdit1.BookmarkWidth = 16; axEdit1.ClearBookmarks(); |
100. How can I remove a bookmark
| C# |
|---|
axEdit1.set_Bookmark(2,true); axEdit1.set_Bookmark(2,false); axEdit1.BookmarkWidth = 16; |
101. How can I move to the next bookmark
| C# |
|---|
axEdit1.set_Bookmark(2,true); axEdit1.set_Bookmark(4,true); axEdit1.BookmarkWidth = 16; axEdit1.NextBookmark(); |
102. How can I move to the previous bookmark
| C# |
|---|
axEdit1.set_Bookmark(2,true); axEdit1.set_Bookmark(4,true); axEdit1.BookmarkWidth = 16; axEdit1.PrevBookmark(); |
103. How do I get the bookmarks as a list
| C# |
|---|
axEdit1.set_Bookmark(2,true); axEdit1.set_Bookmark(4,true); axEdit1.BookmarkWidth = 16; object var_BookmarksList = axEdit1.BookmarksList; |
104. How can I programmatically perform an UNDO operation
| C# |
|---|
axEdit1.Undo(); |
105. How can I programmatically perform a REDO operation
| C# |
|---|
axEdit1.Redo(); |
106. How do I ensure that a specified line is visible
| C# |
|---|
axEdit1.EnsureVisibleLine(axEdit1.Count); |
107. How can I add my own items in the control's context menu
| C# |
|---|
axEdit1.ContextMenuItems = "New Item"; |
108. How do I change the background color for a line
| C# |
|---|
axEdit1.set_BackColorLine(1,255); |
109. How do I change the foreground color for a line
| C# |
|---|
axEdit1.set_ForeColorLine(1,255); |
110. How do I remove the line's background color
| C# |
|---|
axEdit1.set_BackColorLine(1,255); axEdit1.ClearBackColorLine(1); |
111. Can I display a custom icon or picture in the bookmark area
| C# |
|---|
axEdit1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0" +
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" +
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" +
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
axEdit1.set_BookmarkImageLine(2,1);
axEdit1.set_Bookmark(4,true);
axEdit1.BookmarkWidth = 18;
|
112. Can I display a custom icon or picture for bookmarks
| C# |
|---|
axEdit1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0" +
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" +
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" +
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
axEdit1.BookmarkImage = 1;
axEdit1.set_Bookmark(2,true);
axEdit1.set_Bookmark(4,true);
axEdit1.BookmarkWidth = 18;
|
113. How can I change the color for the bookmark's border
| C# |
|---|
axEdit1.BookmarkBorderColor = Color.FromArgb(255,0,0); axEdit1.BookmarkWidth = 18; |
114. How can I change the color for the line number's border
| C# |
|---|
axEdit1.LineNumberBorderColor = Color.FromArgb(255,0,0); axEdit1.LineNumberWidth = 18; |
115. How do I ignore \" in a string
| C# |
|---|
axEdit1.InsertText("\"just a string \\\"expression\"\\r\\n",1);
axEdit1.AddExpression("<fgcolor=800000><b>\"</b></fgcolor>","<b><fgcolor=FF0000> </fgcolor></b>","<fgcolor=800000><b>\"</b></fgcolor>",true,null);
axEdit1.set_IgnorePrefixInExpression("\"","\\");
axEdit1.Refresh();
|
116. How do I highlight the position of multiple lines expression on the vertical scroll bar
| C# |
|---|
axEdit1.AllowMark = true;
axEdit1.MarkContinueBlocks = true;
axEdit1.AddKeyword("<b>CAxWnd",null,null,null);
axEdit1.AddExpression("<fgcolor=800000><b>BEGIN_MSG_MAP</b></fgcolor>","<b><fgcolor=FF0000> </fgcolor></b>","<fgcolor=800000><b>END_MSG_MAP</b></fgcolor>",true,null);
axEdit1.set_MarkColor("BEGIN_MSG_MAP",255);
axEdit1.set_MarkColor("END_MSG_MAP",128);
axEdit1.set_MarkColor("CAxWnd",0);
axEdit1.Refresh();
|
117. How can I show or hide the grid lines
| C# |
|---|
axEdit1.DrawGridLines = true; |
118. How can I change the height of the line
| C# |
|---|
axEdit1.Font.Size = 32; axEdit1.DrawGridLines = true; axEdit1.Refresh(); |
119. How do I change the font to display the line numbers
| C# |
|---|
axEdit1.LineNumberFont.Name = "Tahoma"; axEdit1.LineNumberWidth = 18; |
120. How can I select a line
| C# |
|---|
axEdit1.LineNumberWidth = 18; axEdit1.HideSelection = false; axEdit1.SelectLine(3); |
121. How can I show or hide the control's splitter
| C# |
|---|
axEdit1.AllowSplitter = EXEDITLib.SplitterEnum.exBothSplitter; axEdit1.SplitPaneHeight = 128; axEdit1.SplitPaneWidth = 128; |
122. How can I indent a line
| C# |
|---|
axEdit1.LineNumberWidth = 18; axEdit1.HideSelection = false; axEdit1.SelectLine(3); axEdit1.IndentSel(true); |
123. How can I disable indenting the selected text when the user presses the TAB key
| C# |
|---|
axEdit1.IndentOnTab = false; |
124. How can I move the cursor when user invokes the control's context menu
| C# |
|---|
axEdit1.RClick = true; |
125. How can I change the caption for the Find dialog
| C# |
|---|
axEdit1.set_Caption(EXEDITLib.DialogEnum.exFindDialog,EXEDITLib.FieldDialogEnum.exCaption,"Search"); |
126. How can I change the caption for the Replace dialog
| C# |
|---|
axEdit1.set_Caption(EXEDITLib.DialogEnum.exReplaceDialog,EXEDITLib.FieldDialogEnum.exCaption,"Search and Replace"); |
127. How can I change the descriptions for fields in the Find dialog
| C# |
|---|
axEdit1.set_Caption(EXEDITLib.DialogEnum.exFindDialog,EXEDITLib.FieldDialogEnum.exFieldFindWhat,"What"); axEdit1.set_Caption(EXEDITLib.DialogEnum.exFindDialog,EXEDITLib.FieldDialogEnum.exFieldWordOnly,"Word"); axEdit1.set_Caption(EXEDITLib.DialogEnum.exFindDialog,EXEDITLib.FieldDialogEnum.exFieldMatchCase,"Case"); axEdit1.set_Caption(EXEDITLib.DialogEnum.exFindDialog,EXEDITLib.FieldDialogEnum.exFieldFindNext,"Dir"); axEdit1.set_Caption(EXEDITLib.DialogEnum.exFindDialog,EXEDITLib.FieldDialogEnum.exFieldSelection,"U"); axEdit1.set_Caption(EXEDITLib.DialogEnum.exFindDialog,EXEDITLib.FieldDialogEnum.exFieldWholeFile,"D"); axEdit1.set_Caption(EXEDITLib.DialogEnum.exFindDialog,EXEDITLib.FieldDialogEnum.exFieldFindNext,"Next"); axEdit1.set_Caption(EXEDITLib.DialogEnum.exFindDialog,EXEDITLib.FieldDialogEnum.exFieldReplace,"All"); axEdit1.set_Caption(EXEDITLib.DialogEnum.exFindDialog,EXEDITLib.FieldDialogEnum.exFieldCancel,"Abandon"); axEdit1.set_Caption(EXEDITLib.DialogEnum.exFindDialog,EXEDITLib.FieldDialogEnum.exErrorFindNext,"Failed!"); |
128. How can I change the descriptions for fields in the Replace dialog
| C# |
|---|
axEdit1.set_Caption(EXEDITLib.DialogEnum.exReplaceDialog,EXEDITLib.FieldDialogEnum.exFieldFindWhat,"What"); axEdit1.set_Caption(EXEDITLib.DialogEnum.exReplaceDialog,EXEDITLib.FieldDialogEnum.exFieldReplaceWith,"Replace"); axEdit1.set_Caption(EXEDITLib.DialogEnum.exReplaceDialog,EXEDITLib.FieldDialogEnum.exFieldWordOnly,"Word"); axEdit1.set_Caption(EXEDITLib.DialogEnum.exReplaceDialog,EXEDITLib.FieldDialogEnum.exFieldMatchCase,"Case"); axEdit1.set_Caption(EXEDITLib.DialogEnum.exReplaceDialog,EXEDITLib.FieldDialogEnum.exFieldFindNext,"Dir"); axEdit1.set_Caption(EXEDITLib.DialogEnum.exReplaceDialog,EXEDITLib.FieldDialogEnum.exFieldSelection,"Sel"); axEdit1.set_Caption(EXEDITLib.DialogEnum.exReplaceDialog,EXEDITLib.FieldDialogEnum.exFieldWholeFile,"File"); axEdit1.set_Caption(EXEDITLib.DialogEnum.exReplaceDialog,EXEDITLib.FieldDialogEnum.exFieldReplace,"Rep"); axEdit1.set_Caption(EXEDITLib.DialogEnum.exReplaceDialog,EXEDITLib.FieldDialogEnum.exFieldReplaceAll,"All"); axEdit1.set_Caption(EXEDITLib.DialogEnum.exReplaceDialog,EXEDITLib.FieldDialogEnum.exFieldCancel,"Abandon"); axEdit1.set_Caption(EXEDITLib.DialogEnum.exReplaceDialog,EXEDITLib.FieldDialogEnum.exErrorTitle,"Title"); axEdit1.set_Caption(EXEDITLib.DialogEnum.exReplaceDialog,EXEDITLib.FieldDialogEnum.exErrorFindNext,"Failed!"); axEdit1.set_Caption(EXEDITLib.DialogEnum.exReplaceDialog,EXEDITLib.FieldDialogEnum.exErrorFindNext,"Done"); |
129. How can I change the descriptions for items in the control's context menu
| C# |
|---|
axEdit1.set_Caption(EXEDITLib.DialogEnum.exContextMenu,EXEDITLib.FieldDialogEnum.exContextUndo,"U N D O"); axEdit1.set_Caption(EXEDITLib.DialogEnum.exContextMenu,EXEDITLib.FieldDialogEnum.exContextRedo,"R E D O"); axEdit1.set_Caption(EXEDITLib.DialogEnum.exContextMenu,EXEDITLib.FieldDialogEnum.exContextCut,"C U T"); axEdit1.set_Caption(EXEDITLib.DialogEnum.exContextMenu,EXEDITLib.FieldDialogEnum.exContextCopy,"C O P Y"); axEdit1.set_Caption(EXEDITLib.DialogEnum.exContextMenu,EXEDITLib.FieldDialogEnum.exContextPaste,"P A S T E"); axEdit1.set_Caption(EXEDITLib.DialogEnum.exContextMenu,EXEDITLib.FieldDialogEnum.exContextDelete,"D E L"); axEdit1.set_Caption(EXEDITLib.DialogEnum.exContextMenu,EXEDITLib.FieldDialogEnum.exContextSelectAll,"A L L "); |
130. How can I enable or disable OLE drag and drop operations
| C# |
|---|
axEdit1.OLEDropMode = EXEDITLib.exOLEDropModeEnum.exOLEDropAutomatic; |
131. How can I change the shape of the cursor when it hovers the edit
| C# |
|---|
axEdit1.set_Cursor(EXEDITLib.ClientAreaEnum.exEditArea,0); |
132. How can I change the shape of the cursor when it hovers the bookmark area
| C# |
|---|
axEdit1.set_Cursor(EXEDITLib.ClientAreaEnum.exBookmarkArea,"exHelp"); axEdit1.BookmarkWidth = 16; |
133. How can I change the shape of the cursor when it hovers the line numbers area
| C# |
|---|
axEdit1.set_Cursor(EXEDITLib.ClientAreaEnum.exLineNumberArea,"exHelp"); axEdit1.LineNumberWidth = 16; |
134. How can I change the shape of the cursor when it hovers the incremental search area
| C# |
|---|
axEdit1.set_Cursor(EXEDITLib.ClientAreaEnum.exIncrementalSearchArea,"exHelp"); |
135. How can I change the shape of the cursor when it hovers the selected text
| C# |
|---|
axEdit1.set_Cursor(EXEDITLib.ClientAreaEnum.exSelectedText,"exHelp"); axEdit1.SelLength = 10; axEdit1.HideSelection = false; |
136. How do I select multiple lines
| C# |
|---|
axEdit1.SetSelection(0,0,10,0); axEdit1.HideSelection = false; |
138. How do I start overtyping
| C# |
|---|
axEdit1.Overtype = true; |
139. How do I lock or make read only a line
| C# |
|---|
axEdit1.set_LockedLine(1,true); |
140. How do I change the color for a locked or a read only line
| C# |
|---|
axEdit1.ForeColorLockedLine = Color.FromArgb(0,0,0); axEdit1.BackColorLockedLine = Color.FromArgb(255,0,0); axEdit1.set_LockedLine(1,true); |
141. How can I display a tooltip as soon as the user types a keyword
| C# |
|---|
axEdit1.ToolTipDelay = 1;
axEdit1.ToolTipOnTyping = true;
axEdit1.AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",null);
axEdit1.Refresh();
|
142. How do I add a keyword
| C# |
|---|
axEdit1.AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",null);
axEdit1.Refresh();
|
143. How do I add a keyword
| C# |
|---|
axEdit1.AddKeyword("<fgcolor=FF0000>class</fgcolor>",null,null,null);
axEdit1.Refresh();
|
144. How can I assign a tooltip to a keyword
| C# |
|---|
axEdit1.AddKeyword("<fgcolor=FF0000>class</fgcolor>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",null);
axEdit1.Refresh();
|
145. How do I add a keyword that's not case sensitive
| C# |
|---|
axEdit1.AddKeyword("<fgcolor=FF0000>class</fgcolor>","","",1);
axEdit1.Refresh();
axEdit1.InsertText("ClasS\\r\\n",1);
axEdit1.InsertText("CLASS\\r\\n",1);
|
146. How do I add a keyword that's not case sensitive
| C# |
|---|
axEdit1.AddKeyword("<b><fgcolor=FF0000>class</fgcolor></b>","","",2);
axEdit1.Refresh();
axEdit1.InsertText("ClasS\\r\\n",1);
axEdit1.InsertText("CLASS\\r\\n",1);
|
147. How can I remove or delete keyword
| C# |
|---|
axEdit1.AddKeyword("<b><fgcolor=FF0000>class</fgcolor></b>",null,null,null);
axEdit1.DeleteKeyword("class");
axEdit1.Refresh();
|
148. How can I remove or delete all keywords
| C# |
|---|
axEdit1.AddKeyword("<b><fgcolor=FF0000>class</fgcolor></b>",null,null,null);
axEdit1.ClearKeywords();
axEdit1.Refresh();
|
149. How can I add an expression on multiple lines
| C# |
|---|
axEdit1.AddExpression("<fgcolor=800000><b>BEGIN_MSG_MAP</b></fgcolor>","<b><fgcolor=FF0000> </fgcolor></b>","<fgcolor=800000><b>END_MSG_MAP</b></fgcolor>",true,null);
axEdit1.Refresh();
|
150. How can I add an expression
| C# |
|---|
axEdit1.AddExpression("(","<b><fgcolor=FF0000> </fgcolor></b>",")",false,null);
axEdit1.Refresh();
|
151. How can I remove or delete an expression
| C# |
|---|
axEdit1.AddExpression("(","<b><fgcolor=FF0000> </fgcolor></b>",")",false,null);
axEdit1.DeleteExpression("(");
axEdit1.Refresh();
|
152. How can I remove or delete all expressions
| C# |
|---|
axEdit1.AddExpression("(","<b><fgcolor=FF0000> </fgcolor></b>",")",false,null);
axEdit1.ClearExpressions();
axEdit1.Refresh();
|
153. Can I use wild characters to define keys in your control
| C# |
|---|
axEdit1.AddWild("<s> </s>");
axEdit1.Refresh();
|
154. Can I use wild characters to define keys in your control
| C# |
|---|
axEdit1.AddWild("<b>a</b>");
axEdit1.Refresh();
|
155. How can I add a sensitive context menu
| C# |
|---|
axEdit1.AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",null);
axEdit1.Refresh();
axEdit1.get_Context(null).Add("class",null,null,null);
|
156. How do I enable or disable the sensitive context menu
| C# |
|---|
axEdit1.CodeCompletion = false;
axEdit1.AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",null);
axEdit1.Refresh();
axEdit1.get_Context(null).Add("class",null,null,null);
|
157. How can I change the keys combination that invokes the sensitive context
| C# |
|---|
axEdit1.ContextKey = 544;
axEdit1.AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",null);
axEdit1.Refresh();
axEdit1.get_Context(null).Add("class",null,null,null);
|
158. Can I add icons to the sensitive context
| C# |
|---|
axEdit1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0" +
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" +
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" +
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
axEdit1.AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",null);
axEdit1.Refresh();
axEdit1.get_Context(null).Add("<b>class</b>","",1,null);
|
159. How do I sort items in the sensitive context
| C# |
|---|
axEdit1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0" +
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" +
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" +
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
axEdit1.AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",null);
axEdit1.AddKeyword("<b>public</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",null);
axEdit1.Refresh();
axEdit1.get_Context(null).Add("<b>public</b>","",2,null);
axEdit1.get_Context(null).Add("<b>class</b>","",1,null);
axEdit1.get_Context(null).Sort(true);
|
160. How do I specify the characters to close the sensitive context
| C# |
|---|
axEdit1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0" +
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" +
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" +
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
axEdit1.AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",null);
axEdit1.AddKeyword("<b>public</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",null);
axEdit1.Refresh();
EXEDITLib.Context var_Context = axEdit1.get_Context(null);
var_Context.Add("<b>class</b>","",1,null);
var_Context.Add("<b>public</b>","",2,null);
var_Context.set_Options(EXEDITLib.ContextOptionEnum.exContextAllowChars,"_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz");
|