2 // System.Windows.Forms.RichTextBox.cs
5 // stubbed out by Daniel Carrera (dcarrera@math.toronto.edu)
6 // Dennis Hayes (dennish@Raytek.com)
8 // (C) 2002/3 Ximian, Inc
13 namespace System.Windows.Forms {
19 public class RichTextBox : TextBoxBase
21 private IntPtr handleCommCtrlLib;
29 handleCommCtrlLib = Win32.LoadLibraryA("riched20.dll");
34 // --- Public Properties
37 public override bool AllowDrop {
40 return base.AllowDrop;
44 base.AllowDrop = value;
48 public override bool AutoSize {
51 return base.AutoSize;;
55 base.AutoSize = value;
59 public bool AutoWordSelection {
61 throw new NotImplementedException ();
64 throw new NotImplementedException ();
68 public override Image BackgroundImage {
71 return base.BackgroundImage;
75 base.BackgroundImage = value;
79 public int BulletIndent {
81 throw new NotImplementedException ();
84 throw new NotImplementedException ();
90 throw new NotImplementedException ();
94 public bool DetectUrls {
96 throw new NotImplementedException ();
99 throw new NotImplementedException ();
103 public override Font Font {
114 public override Color ForeColor {
117 return base.ForeColor;
121 base.ForeColor = value;
125 public override int MaxLength {
127 throw new NotImplementedException ();
130 throw new NotImplementedException ();
134 public override bool Multiline {
136 throw new NotImplementedException ();
139 throw new NotImplementedException ();
143 public string RedoActionName {
145 throw new NotImplementedException ();
149 public int RightMargin {
151 throw new NotImplementedException ();
154 throw new NotImplementedException ();
160 throw new NotImplementedException ();
163 throw new NotImplementedException ();
167 public RichTextBoxScrollBars ScrollBars {
169 throw new NotImplementedException ();
172 throw new NotImplementedException ();
176 public string SelectedRtf {
178 throw new NotImplementedException ();
181 throw new NotImplementedException ();
185 public override string SelectedText {
187 throw new NotImplementedException ();
190 throw new NotImplementedException ();
194 public HorizontalAlignment SelectionAlignment {
196 throw new NotImplementedException ();
199 throw new NotImplementedException ();
203 public bool SelectionBullet {
205 throw new NotImplementedException ();
208 throw new NotImplementedException ();
212 public int SelectionCharOffset {
214 throw new NotImplementedException ();
217 throw new NotImplementedException ();
221 public Color SelectionColor {
223 throw new NotImplementedException ();
226 throw new NotImplementedException ();
230 public Font SelectionFont {
232 throw new NotImplementedException ();
235 throw new NotImplementedException ();
239 public int SelectionHangingIndent {
241 throw new NotImplementedException ();
244 throw new NotImplementedException ();
248 public int SelectionIndent {
250 throw new NotImplementedException ();
253 throw new NotImplementedException ();
257 public override int SelectionLength {
259 throw new NotImplementedException ();
262 throw new NotImplementedException ();
266 public bool SelectionProtected {
268 throw new NotImplementedException ();
271 throw new NotImplementedException ();
275 public int SelectionRightIndent {
277 throw new NotImplementedException ();
280 throw new NotImplementedException ();
284 public int[] SelectionTabs {
286 throw new NotImplementedException ();
289 throw new NotImplementedException ();
293 public RichTextBoxSelectionTypes SelectionType {
295 throw new NotImplementedException ();
299 public bool ShowSelectionMargin {
301 throw new NotImplementedException ();
304 throw new NotImplementedException ();
308 public override string Text {
317 public override int TextLength {
319 throw new NotImplementedException ();
323 public string UndoActionName {
325 throw new NotImplementedException ();
329 public float ZoomFactor {
331 throw new NotImplementedException ();
334 throw new NotImplementedException ();
339 #region Public Methods
341 // --- Public Methods
344 protected override void Dispose(bool disposing)
346 base.Dispose(disposing);
347 Win32.FreeLibrary(handleCommCtrlLib);
352 public bool CanPaste(DataFormats.Format clipFormat)
354 throw new NotImplementedException ();
358 public int Find(char[] characterSet)
360 throw new NotImplementedException ();
363 public int Find(string str)
365 throw new NotImplementedException ();
368 public int Find(char[] characterSet, int start)
370 throw new NotImplementedException ();
373 public int Find(string str, RichTextBoxFinds options)
375 throw new NotImplementedException ();
378 public int Find(char[] characterSet, int start, int end)
380 throw new NotImplementedException ();
383 public int Find(string str, int start, RichTextBoxFinds options)
385 throw new NotImplementedException ();
388 public int Find(string str, int val1, int val2, RichTextBoxFinds finds)
390 throw new NotImplementedException ();
393 public char GetCharFromPosition(Point pt)
395 throw new NotImplementedException ();
398 public int GetLineFromCharIndex(int index)
400 throw new NotImplementedException ();
403 public Point GetPositionFromCharIndex(int index)
405 throw new NotImplementedException ();
409 public void LoadFile(string path)
411 throw new NotImplementedException ();
414 public void LoadFile(Stream path, RichTextBoxStreamType fileType)
416 throw new NotImplementedException ();
421 public void Paste(DataFormats.Format clipFormat)
423 throw new NotImplementedException ();
429 throw new NotImplementedException ();
433 public void SaveFile(string path)
435 throw new NotImplementedException ();
438 public void SaveFile(Stream path, RichTextBoxStreamType fileType)
440 throw new NotImplementedException ();
443 public void SaveFile(string path, RichTextBoxStreamType fileType)
445 throw new NotImplementedException ();
449 #region Public Events
453 public event ContentsResizedEventHandler ContentsResized;
454 public event EventHandler HScroll;
455 public event EventHandler ImeChange;
456 public event LinkClickedEventHandler LinkClicked;
457 public event EventHandler Protected;
458 public event EventHandler SelectionChanged;
459 public event EventHandler VScroll;
462 #region Protected Properties
464 // --- Protected Properties
467 protected override CreateParams CreateParams
470 CreateParams createParams = base.CreateParams;
472 createParams.ClassName = "RichEdit20A";
473 createParams.Style = (int) ( WindowStyles.WS_CHILD | WindowStyles.WS_VISIBLE);
479 protected override Size DefaultSize {
481 return new System.Drawing.Size(300,300);
486 #region Protected Methods
488 // --- Protected Methods
492 protected virtual object CreateRichEditOleCallback()
494 throw new NotImplementedException ();
498 protected override void OnBackColorChanged(EventArgs e)
500 throw new NotImplementedException ();
504 protected virtual void OnContentsResized(ContentsResizedEventArgs e)
506 throw new NotImplementedException ();
510 protected override void OnContextMenuChanged(EventArgs e)
512 throw new NotImplementedException ();
516 protected override void OnHandleCreated(EventArgs e)
521 protected override void OnHandleDestroyed(EventArgs e)
523 throw new NotImplementedException ();
527 protected virtual void OnHScroll(EventArgs e)
529 throw new NotImplementedException ();
533 protected virtual void OnImeChange(EventArgs e)
535 throw new NotImplementedException ();
539 protected virtual void OnLinkClicked(LinkClickedEventArgs e)
541 throw new NotImplementedException ();
545 protected virtual void OnProtected(EventArgs e)
547 throw new NotImplementedException ();
551 protected override void OnRightToLeftChanged(EventArgs e)
553 throw new NotImplementedException ();
557 protected virtual void OnSelectionChanged(EventArgs e)
559 throw new NotImplementedException ();
563 protected override void OnSystemColorsChanged(EventArgs e)
565 throw new NotImplementedException ();
569 protected override void OnTextChanged(EventArgs e)
571 throw new NotImplementedException ();
575 protected virtual void OnVScroll(EventArgs e)
577 throw new NotImplementedException ();
581 protected override void WndProc(ref Message m)
583 throw new NotImplementedException ();