[archived content]

About

RichTextBox? is a Control that can display text of many different colors and fonts together in the same Control. Underneath RichTextBox?'s formatting is based upon the RTF format.

Usage

RichTextBox? is mainly about using selections to modify what you want. On a side note you could edit the rtf property to get the source of all the formatting in RTF but it would be both inefficient and difficult to parse while editting selections will take a lot of the pain out of this for you.

Note that, by default, RichTextBox? doesn't handle tabs. This means that if you hit tab while inside of a RichTextBox?, focus will shift to the next control, rather than add a tab character into the text. To change this, simply use yourtextboxname.acceptsTab = true somewhere, probably in your frames constructor, and afterwards you can use tabs no problem.

module dfl.richtextbox;
public class LinkClickedEventArgs: EventArgs
{
public final char[] linkText; [property getter]
[+] Inherited members
}
public class RichTextBox: TextBoxBase
{
public Color backColor; [property setter]
public final bool canPaste(DataFormats.Format df);
public final bool canRedo; [property getter]
protected void createParams(ref CreateParams cp);
public Cursor cursor; [property getter]
public Size defaultSize; [property getter]
public final bool detectUrls; [property getter]
public final bool detectUrls; [property setter]
public Color foreColor; [property setter]
public Event linkClicked(RichTextBox,LinkClickedEventArgs);
public uint maxLength; [property setter]
protected void onHandleCreated(EventArgs ea);
protected void onLinkClicked(LinkClickedEventArgs ea);
protected void onReflectedMessage(ref Message m);
public final void paste(DataFormats.Format df);
protected void prevWndProc(ref Message m);
public final void redo();
public final char[] rtf; [property getter]
public final char[] rtf; [property setter]
public final RichTextBoxScrollBars scrollBars; [property setter]
public final RichTextBoxScrollBars scrollBars; [property getter]
public final char[] selectedRtf; [property setter]
public final char[] selectedRtf; [property getter]
public char[] selectedText; [property getter]
public final Color selectionBackColor; [property getter]
public final Color selectionBackColor; [property setter]
public final int selectionCharOffset; [property setter]
public final int selectionCharOffset; [property getter]
public final Color selectionColor; [property setter]
public final Color selectionColor; [property getter]
public final Font selectionFont; [property setter]
public final Font selectionFont; [property getter]
public uint selectionLength; [property setter]
public uint selectionLength; [property getter]
public uint selectionStart; [property getter]
public uint selectionStart; [property setter]
public final bool selectionSubscript; [property setter]
public final bool selectionSubscript; [property getter]
public final bool selectionSuperscript; [property getter]
public final bool selectionSuperscript; [property setter]
public final bool selectionUnderline; [property setter]
public final bool selectionUnderline; [property getter]
[+] Inherited members
}
public static class RichTextBox.ControlCollection
{
public void add(Control ctrl);
public bool contains(Control ctrl);
public int indexOf(Control ctrl);
public int length; [property getter]
public int opApply(int delegate(ref Control) dg);
public int opIndex; [property getter]
protected final Control owner; [property getter]
public void remove(Control ctrl);
public void removeAt(int i);
}

Page last modified on March 19, 2009, at 10:32 PM