Exemplo n.º 1
0
 public static void SelectAll()
 {
     if (TabManager.HasTabs())
     {
         RichTextBox Box = TabManager.GetBox();
         Box.SelectAll();
     }
 }
Exemplo n.º 2
0
 public static void Paste()
 {
     if (TabManager.HasTabs())
     {
         RichTextBox Box = TabManager.GetBox();
         Box.Paste();
     }
 }
Exemplo n.º 3
0
 public static void Copy()
 {
     if (TabManager.HasTabs())
     {
         RichTextBox Box = TabManager.GetBox();
         Box.Copy();
     }
 }
Exemplo n.º 4
0
 public static void RefreshColorHighlighter()
 {
     if (TabManager.HasTabs())
     {
         RichTextBox Box = TabManager.GetBox();
         ColorHighlighter.Parse(Box);
     }
 }
Exemplo n.º 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;
        }
    }
Exemplo n.º 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);
    }