示例#1
0
 public static void SelectAll()
 {
     if (TabManager.HasTabs())
     {
         RichTextBox Box = TabManager.GetBox();
         Box.SelectAll();
     }
 }
示例#2
0
 public static void Paste()
 {
     if (TabManager.HasTabs())
     {
         RichTextBox Box = TabManager.GetBox();
         Box.Paste();
     }
 }
示例#3
0
 public static void Copy()
 {
     if (TabManager.HasTabs())
     {
         RichTextBox Box = TabManager.GetBox();
         Box.Copy();
     }
 }
示例#4
0
 public static void RefreshColorHighlighter()
 {
     if (TabManager.HasTabs())
     {
         RichTextBox Box = TabManager.GetBox();
         ColorHighlighter.Parse(Box);
     }
 }
示例#5
0
  { public static void Insert(String Text)
    {
        if (TabManager.HasTabs())
        {
            RichTextBox Box = TabManager.GetBox();

            /* If text is selected, it is replaced. If
             * no text is selected, new text is inserted
             * at the insertion point or caret.           */

            Box.SelectedText = Text;
        }
    }
示例#6
0
    public static int Find(String Text, int Index, RichTextBoxFinds Flags)
    {
        if (TabManager.HasTabs())
        {
            RichTextBox Box = TabManager.GetBox();

            Index = Box.Find(Text, Index, Flags);

            if (Index != -1)
            {
                Box.SelectionStart  = Index;
                Box.SelectionLength = Text.Length;
                Box.HideSelection   = false;
            }
        }
        else
        {
            Index = -1;
        }

        return(Index);
    }