资源简介

一款开源轻量级代码编辑器,自动补全,智能提示,语法高亮,代码折叠一应俱全

资源截图

代码片段和文件信息

using System;
using System.Drawing;
using System.Drawing.Printing;

namespace FastColoredTextBoxNS
{
    /// 
    /// Item of autocomplete menu
    /// 

    public class AutocompleteItem
    {
        public string Text;
        public int ImageIndex = -1;
        public object Tag;
        string toolTiptitle;
        string toolTipText;
        string menuText;
        public AutocompleteMenu Parent { get; internal set; }
        

        public AutocompleteItem()
        {
        }

        public AutocompleteItem(string text)
        {
            Text = text;
        }

        public AutocompleteItem(string text int imageIndex)
            : this(text)
        {
            this.ImageIndex = imageIndex;
        }

        public AutocompleteItem(string text int imageIndex string menuText)
            : this(text imageIndex)
        {
            this.menuText = menuText;
        }

        public AutocompleteItem(string text int imageIndex string menuText string toolTiptitle string toolTipText)
            : this(text imageIndex menuText)
        {
            this.toolTiptitle = toolTiptitle;
            this.toolTipText = toolTipText;
        }

        /// 
        /// Returns text for inserting into Textbox
        /// 

        public virtual string GetTextForReplace()
        {
            return Text;
        }

        /// 
        /// Compares fragment text with this item
        /// 

        public virtual CompareResult Compare(string fragmentText)
        {
            if (Text.StartsWith(fragmentText StringComparison.InvariantCultureIgnoreCase) &&
                   Text != fragmentText)
                return CompareResult.VisibleAndSelected;

            return CompareResult.Hidden;
        }

        /// 
        /// Returns text for display into popup menu
        /// 

        public override string ToString()
        {
            return menuText ?? Text;
        }

        /// 
        /// This method is called after item inserted into text
        /// 

        public virtual void onselected(AutocompleteMenu popupMenu SelectedEventArgs e)
        {
            ;
        }

        /// 
        /// title for tooltip.
        /// 

        /// Return null for disable tooltip for this item
        public virtual string ToolTiptitle
        {
            get { return toolTiptitle; }
            set { toolTiptitle = value; }
        }

        /// 
        /// Tooltip text.
        /// 

        /// For display tooltip text ToolTiptitle must be not null
        public virtual string ToolTipText 
        {
            get{ return toolTipText; }
            set { toolTipText = value; }
        }

        /// 
        /// Menu text. This text is displayed in the drop-down menu.
        /// 

        public virtual string MenuText
   

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2014-11-22 00:20  FastColoredTextBox-master\
     文件        1522  2014-11-22 00:20  FastColoredTextBox-master\.gitignore
     目录           0  2014-11-22 00:20  FastColoredTextBox-master\Binary\
     文件      333824  2014-11-22 00:20  FastColoredTextBox-master\Binary\FastColoredTextBox.dll
     文件      128011  2014-11-22 00:20  FastColoredTextBox-master\Binary\FastColoredTextBox.xml
     文件       45056  2014-11-22 00:20  FastColoredTextBox-master\Binary\TabStrip.dll
     文件      281088  2014-11-22 00:20  FastColoredTextBox-master\Binary\Tester.exe
     文件         835  2014-11-22 00:20  FastColoredTextBox-master\Binary\htmlDesc.xml
     文件        3472  2014-11-22 00:20  FastColoredTextBox-master\FastColoredTextBox.sln
     目录           0  2014-11-22 00:20  FastColoredTextBox-master\FastColoredTextBox\
     文件        7719  2014-11-22 00:20  FastColoredTextBox-master\FastColoredTextBox\AutocompleteItem.cs
     文件       23504  2014-11-22 00:20  FastColoredTextBox-master\FastColoredTextBox\AutocompleteMenu.cs
     文件        7383  2014-11-22 00:20  FastColoredTextBox-master\FastColoredTextBox\Bookmarks.cs
     文件         580  2014-11-22 00:20  FastColoredTextBox-master\FastColoredTextBox\Char.cs
     文件        6309  2014-11-22 00:20  FastColoredTextBox-master\FastColoredTextBox\CommandManager.cs
     文件       27656  2014-11-22 00:20  FastColoredTextBox-master\FastColoredTextBox\Commands.cs
     文件        7542  2014-11-22 00:20  FastColoredTextBox-master\FastColoredTextBox\DocumentMap.cs
     文件       15313  2014-11-22 00:20  FastColoredTextBox-master\FastColoredTextBox\EncodingDetector.cs
     文件        7533  2014-11-22 00:20  FastColoredTextBox-master\FastColoredTextBox\ExportToHTML.cs
     文件        7064  2014-11-22 00:20  FastColoredTextBox-master\FastColoredTextBox\ExportToRTF.cs
     文件         596  2014-11-22 00:20  FastColoredTextBox-master\FastColoredTextBox\FCTB_key.snk
     文件      297501  2014-11-22 00:20  FastColoredTextBox-master\FastColoredTextBox\FastColoredTextBox.cs
     文件        5582  2014-11-22 00:20  FastColoredTextBox-master\FastColoredTextBox\FastColoredTextBox.csproj
     文件        5698  2014-11-22 00:20  FastColoredTextBox-master\FastColoredTextBox\FastColoredTextBox.resx
     文件       13760  2014-11-22 00:20  FastColoredTextBox-master\FastColoredTextBox\FileTextSource.cs
     文件        6353  2014-11-22 00:20  FastColoredTextBox-master\FastColoredTextBox\FindForm.Designer.cs
     文件        3591  2014-11-22 00:20  FastColoredTextBox-master\FastColoredTextBox\FindForm.cs
     文件        5698  2014-11-22 00:20  FastColoredTextBox-master\FastColoredTextBox\FindForm.resx
     文件        4524  2014-11-22 00:20  FastColoredTextBox-master\FastColoredTextBox\GoToForm.Designer.cs
     文件        1373  2014-11-22 00:20  FastColoredTextBox-master\FastColoredTextBox\GoToForm.cs
     文件        5695  2014-11-22 00:20  FastColoredTextBox-master\FastColoredTextBox\GoToForm.resx
............此处省略267个文件信息

评论

共有 条评论