📄 filetreenode.cs
字号:
using System ;
using System.Windows.Forms ;
namespace CS_Note1
{
/// <summary>
///
/// </summary>
public class FileTreeNode : TreeNode
{
private TreeNodeStyle _NoteStyle ;
private string _FileOrFolderName ;
public FileTreeNode()
{
this._NoteStyle = TreeNodeStyle.File ;
this.Text = @"???" ;
}
public FileTreeNode (TreeNodeStyle notestylt, string txt)
{
this.NoteStyle = notestylt ;
this.Text = txt ;
if (notestylt == TreeNodeStyle.File)
{
this.ImageIndex = (int)TreeImgIndex.txt ;
this.SelectedImageIndex = (int)TreeImgIndex.txt ;
}
else if (notestylt == TreeNodeStyle.Folder)
{
this.ImageIndex = (int)TreeImgIndex.ClosedFolder ;
}
}
public TreeNodeStyle NoteStyle
{
get
{
return this._NoteStyle ;
}
set
{
_NoteStyle = value ;
}
}
public string FileOrFolderName
{
get
{
return this._FileOrFolderName ;
}
set
{
_FileOrFolderName = value ;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -