资源简介
C#实现的比较牛逼的语法高亮着色编辑器,类似于各种开发的编辑器,有这方面需求的可以下载
代码片段和文件信息
using System;
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.
///
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
....... 6875 2012-02-28 17:12 FastColoredTextBox\FastColoredTextBox\AutocompleteItem.cs
....... 19680 2012-05-05 09:30 FastColoredTextBox\FastColoredTextBox\AutocompleteMenu.cs
文件 212992 2014-04-24 13:41 FastColoredTextBox\FastColoredTextBox\bin\Debug\FastColoredTextBox.dll
文件 458240 2014-04-24 13:41 FastColoredTextBox\FastColoredTextBox\bin\Debug\FastColoredTextBox.pdb
文件 88420 2014-04-24 13:41 FastColoredTextBox\FastColoredTextBox\bin\Debug\FastColoredTextBox.xm
....... 1176 2012-02-28 17:12 FastColoredTextBox\FastColoredTextBox\Char.cs
....... 6342 2012-05-03 01:47 FastColoredTextBox\FastColoredTextBox\CommandManager.cs
....... 25372 2012-05-05 21:28 FastColoredTextBox\FastColoredTextBox\Commands.cs
....... 7445 2012-02-28 17:12 FastColoredTextBox\FastColoredTextBox\Export.cs
文件 175771 2014-04-24 13:41 FastColoredTextBox\FastColoredTextBox\FastColoredTextBox.cs
文件 4683 2014-04-24 11:51 FastColoredTextBox\FastColoredTextBox\FastColoredTextBox.csproj
....... 5817 2011-03-12 01:22 FastColoredTextBox\FastColoredTextBox\FastColoredTextBox.resx
....... 13110 2012-03-19 12:02 FastColoredTextBox\FastColoredTextBox\FileTextSource.cs
文件 3390 2012-05-25 09:16 FastColoredTextBox\FastColoredTextBox\FindForm.cs
....... 6658 2011-04-13 13:15 FastColoredTextBox\FastColoredTextBox\FindForm.Designer.cs
....... 5817 2011-04-13 13:15 FastColoredTextBox\FastColoredTextBox\FindForm.resx
....... 665 2012-02-28 17:12 FastColoredTextBox\FastColoredTextBox\GoToForm.cs
....... 4434 2012-02-07 20:24 FastColoredTextBox\FastColoredTextBox\GoToForm.Designer.cs
....... 5814 2012-02-07 20:24 FastColoredTextBox\FastColoredTextBox\GoToForm.resx
....... 2318 2012-02-28 17:12 FastColoredTextBox\FastColoredTextBox\LimitedStack.cs
....... 10251 2012-05-05 09:43 FastColoredTextBox\FastColoredTextBox\Line.cs
....... 2219 2012-02-28 17:12 FastColoredTextBox\FastColoredTextBox\LinesAccessor.cs
....... 5861 2011-03-12 01:02 FastColoredTextBox\FastColoredTextBox\obj\Debug\DesignTimeResolveAssemblyReferences.cache
文件 5287 2014-04-24 13:41 FastColoredTextBox\FastColoredTextBox\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
文件 6018 2014-04-24 13:13 FastColoredTextBox\FastColoredTextBox\obj\Debug\FastColoredTextBox.csproj.FileListAbsolute.txt
....... 912 2011-05-25 21:23 FastColoredTextBox\FastColoredTextBox\obj\Debug\FastColoredTextBox.csproj.GenerateResource.Cache
文件 212992 2014-04-24 13:41 FastColoredTextBox\FastColoredTextBox\obj\Debug\FastColoredTextBox.dll
文件 458240 2014-04-24 13:41 FastColoredTextBox\FastColoredTextBox\obj\Debug\FastColoredTextBox.pdb
文件 180 2014-04-24 11:51 FastColoredTextBox\FastColoredTextBox\obj\Debug\FastColoredTextBoxNS.FastColoredTextBox.resources
文件 180 2014-04-24 11:51 FastColoredTextBox\FastColoredTextBox\obj\Debug\FastColoredTextBoxNS.FindForm.resources
............此处省略348个文件信息
- 上一篇:基于C#和AE的二次开发
- 下一篇:XPTable-winform很强大的表格控件
相关资源
- 基于C#和AE的二次开发
- BleSolution.zip
- 仓库管理系统/课程设计/ASP.NET/C#
- 药店管理系统 B/S模式 asp.net(C#)+
- C#接科大讯飞在线语音合成Windows
- C#房屋中介管理系统
- wpf 3D旋转地球
- asp.net 教材管理系统 代码+论文
- winform导航菜单,多窗口tab 源码程序
- 鲜花预定系统 C# asp.net
- C#-图书管理系统带数据库
- C#项目之在线聊天系统含源码
- 点和线多边形缓冲区 c#算法
- 界面化的N皇后教学软件
- .obj模型读取显示 c#版
- c#车牌识别系统完整实现
- 电子秤称重仪表串口通讯c#程序
- 数据结构C#语言描述高清版
- C#窗体图书管理系统
- C#实现的自行车出租管理有数据库
- C# winform开发的skyline动画文字及图片
- 智能评教系统(C#_ASP.NET)
- 房屋中介管理系统C#+MSQL无错版+使用文
- c#图书管理系统源程序
- PDF转图片C#
- C# 骑士走棋盘
- 好看好用的IP地址自动设置小程序方便
- OPC UA C#
- c#解析dxf开源代码netDxf
- C#断点续传
评论
共有 条评论