资源简介
一款开源轻量级代码编辑器,自动补全,智能提示,语法高亮,代码折叠一应俱全
代码片段和文件信息
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.xm
文件 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.xm
文件 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个文件信息
- 上一篇:纯C#的DICOM读取和通讯
- 下一篇:C#通讯调试工具源码
相关资源
- C#自定义可限制输入、可验证信息的
- Wpf Treeview拖拽至Textbox中显示
- C#实现的比较牛逼的语法高亮着色编辑
- c# 自定义TextBox 模糊匹配 百度 谷歌搜
- Color_Seg_Kmeans.zip
- VScolorful.vssettings
- c#透明textBox,背景可以设置成透明的
- c#简易 数字键盘/手机键盘button控件与
- WPF制作的取色器ColorPicker
- C#Winform透明Textbox控件
- c# winform RichTextBox Autocomplete 自动完成
- winform 多线程 异步 文件操作(查询、
- RichTextBox Autocomplete 自动完成 智能输入
- C#版的模拟PhotoShop处理图片色阶的程序
- Textbox背景透明(winform)
- C# 字符串多行显示/文本换行以textbo
- C# 文本编辑器之查找和替换功能实现
- C#自定义控件---实现带行数和标尺的
- RegexTextBox可验证文本框(.net c# winfo
- TestAutoTextBox.rar
- C#textbox下拉提示 textbox智能提示 te
- Lx-C#自定义控件---实现带行数和标尺的
- C#winform textbox 画边框和圆角
- C# TextBox 控件透明
- WPF richtextBox高亮显示指定文本.rar
- WPF自制RichTextBox文本编辑器
- c#实现从Excel导入数据到textbox中
- WPF TextBox一个缺陷的修改
- wpf textbox Placeholder Demo
- AE-interpolation C#+AE编译
评论
共有 条评论