上一篇有点短了,因为实在没有什么可说的,这一篇会多一点。Times New Roman";‘>O(>∩Times New Roman";‘>_>∩Times New Roman";‘>)O~
一、下拉列表
关于如何在宋体"; font-size: 10.5pt; font-weight: bold; mso-spacerun: "yes";‘>CodeSmith宋体"; font-size: 10.5pt; font-weight: normal; mso-spacerun: "yes";‘>中创建一个下拉列表的属性框其实很简单,是要使用Times New Roman";‘>C#>中的枚举就行了,看操作。
首先定义一个枚举,跟定义方法一样,也要包含在Times New Roman"; font-size: 10.5pt; font-style: normal; font-weight: normal; mso-spacerun: "yes"; mso-shading: #ffffff;‘><Times New Roman"; font-size: 10.5pt; font-style: normal; font-weight: normal; mso-spacerun: "yes"; mso-shading: #ffffff;‘>scriptTimes New Roman"; font-size: 10.5pt; font-style: normal; font-weight: normal; mso-spacerun: "yes"; mso-shading: #ffffff;‘> Times New Roman"; font-size: 10.5pt; font-style: normal; font-weight: normal; mso-spacerun: "yes"; mso-shading: #ffffff;‘>runatTimes New Roman"; font-size: 10.5pt; font-style: normal; font-weight: normal; mso-spacerun: "yes"; mso-shading: #ffffff;‘>="template">宋体"; font-size: 10.5pt; font-style: normal; font-weight: normal; mso-spacerun: "yes"; mso-shading: #ffffff;‘>……Times New Roman"; font-size: 10.5pt; font-style: normal; font-weight: normal; mso-spacerun: "yes"; mso-shading: #ffffff;‘>Times New Roman"; font-size: 10.5pt; font-style: normal; font-weight: normal; mso-spacerun: "yes"; mso-shading: #ffffff;‘>scriptTimes New Roman"; font-size: 10.5pt; font-style: normal; font-weight: normal; mso-spacerun: "yes"; mso-shading: #ffffff;‘>>宋体"; font-size: 10.5pt; font-style: normal; font-weight: normal; mso-spacerun: "yes"; mso-shading: #ffffff;‘>标签中,代码语法就是我们在定义模板的时候选择的语法,这里我用的是宋体"; font-size: 10.5pt; font-style: normal; font-weight: normal; mso-spacerun: "yes"; mso-shading: #ffffff;‘>C#>,如下:
<Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>scriptTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>runatTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="template">
///Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>
///Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> 定义一个下拉列表的枚举
///Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>
publicTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>enumTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> CollectionTypeEnum
{
OneTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>,
TwoTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>,
Three,
Four,
Five
}
Times New Roman"; font-size: 10.5pt; font-style: normal; font-weight: normal; mso-spacerun: "yes"; mso-shading: #ffffff;‘>scriptTimes New Roman"; font-size: 10.5pt; font-style: normal; font-weight: normal; mso-spacerun: "yes"; mso-shading: #ffffff;‘>>
Like This>,我们就定义好了一个枚举了。接下来就是我们在定义属性的时候,类型选择这个枚举。
<%Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>@Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>PropertyTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>NameTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="宋体"; font-size: 10.5pt; mso-spacerun: "yes";‘>DTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>ropDownList"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>TypeTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="CollectionTypeEnum"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>DefaultTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="宋体"; font-size: 10.5pt; mso-spacerun: "yes";‘>OneTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>DescriptionTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>=">这是一个下拉列表框"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>%>
编译一下就能看见效果了。
src="https://img8.php1.cn/3cdc5/1e789/b64/31ef22ad3d07f472.jpeg">
调用的时候就像普通属性一样就行Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘><%=DropDownList %>宋体"; font-size: 10.5pt; mso-spacerun: "yes";‘>。
二、文件夹对话框
好了,定义好了下拉列表框后我们就开始下一个内容,文件夹对话框。
文件夹对话框有两种定义方式,一种是普通定义的那种,另一种就是用代码定义,不过我经常用第一种,谁让他简单呢。
首先我们要引用两个命名空间Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>System.Windows.Forms.Design宋体"; font-size: 10.5pt; mso-spacerun: "yes";‘>和Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>System.Drawing.Design宋体"; font-size: 10.5pt; mso-spacerun: "yes";‘>如下:
<%Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>@Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>ImportTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>NamespaceTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="System.Windows.Forms.Design"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> %>
<%Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>@Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>ImportTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>NamespaceTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="System.Drawing.Design"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> %>
接下来只要在定义属性的时候,类型选择Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>FolderNameEditor宋体"; font-size: 10.5pt; mso-spacerun: "yes";‘>就行了
<%Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>@Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>PropertyTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>NameTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="Test1"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>TypeTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="String"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>EditorTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="FolderNameEditor"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>EditorBaseTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="UITypeEditor"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>OptionalTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="False"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> %>
当然你也可以写全了,全路径如下:
<%Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>@Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>PropertyTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>NameTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="Test2"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>TypeTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="String"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>EditorTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="System.Windows.Forms.Design.FileNameEditor"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>EditorBaseTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="System.Drawing.Design.UITypeEditor"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>OptionalTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="False"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> %>
编译一下就能看见了
src="https://img8.php1.cn/3cdc5/1e789/b64/93be49d8ea8a86cf.jpeg">
第二种方法也要引用命名空间,然后不添加属性标签,直接在代码中写出来。具体代码如下:
#region 定义一个弹出选择文件夹获取路径的属性
private string _outputDirectory = String.Empty;
///
/// 调用文件夹对话框
///
[Editor(typeof(System.Windows.Forms.Design.FolderNameEditor), typeof(System.Drawing.Design.UITypeEditor))]
[Optional, NotChecked]
[DefaultValue("")]
///
/// 属性名
///
public string OutputDirectory
{
get
{
return _outputDirectory;
}
set
{
if (value.EndsWith("\\")) value = value.Substring(0, value.Length -1);
_outputDirectory = value;
}
}
#endregion
用这种方法的好处是如果我们要处理路径,在输出前处理就可以了,不用再单另的写代码了。呵呵
这里有一点Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>FolderNameEditor宋体"; font-size: 10.5pt; mso-spacerun: "yes";‘>是文件夹,那么相应的Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>FileNameEditor宋体"; font-size: 10.5pt; mso-spacerun: "yes";‘>就是文件了。
取值方法如同正常属性一样。
示例模板:
<%Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>--
Name: >测试模板4
Author: GodFinal
Description:
--Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>%>
<%Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>@Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>TemplateTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>LanguageTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="C#"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>TargetLanguageTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="C#"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>DescriptionTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>=""Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> %>
<%Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>@Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>PropertyTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>NameTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="DropDownList"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>TypeTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="CollectionTypeEnum"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>DefaultTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="One"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>DescriptionTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>=">这是一个下拉列表框"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>%>
<%Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>@Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>ImportTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>NamespaceTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="System.Windows.Forms.Design"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> %>
<%Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>@Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>ImportTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>NamespaceTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="System.Drawing.Design"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> %>
<%Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>@Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>PropertyTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>NameTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="OutputDirectory1"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>TypeTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="String"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>EditorTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="FolderNameEditor"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>EditorBaseTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="UITypeEditor"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>OptionalTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="False"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> %>
<%Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>@Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>PropertyTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>NameTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="OutputDirectory2"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>TypeTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="String"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>EditorTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="System.Windows.Forms.Design.FileNameEditor"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>EditorBaseTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="System.Drawing.Design.UITypeEditor"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>OptionalTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="False"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> %>
<%=DropDownList %>
<%=OutputDirectory%>
<%=OutputDirectory1%>
<%=OutputDirectory2%>
<Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>scriptTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>runatTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="template">
///Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>
///Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> 定义一个下拉列表的枚举
///Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>
publicTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>enumTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> CollectionTypeEnum
{
One,
Times New Roman";‘>Two,
Times New Roman";‘>Three,
Times New Roman";‘>Four,
Times New Roman";‘>Five
}
#regionTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> 定义一个弹出选择文件夹对话框获取路劲的属性
privateTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>stringTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> _outputDirectory = String.Empty;
///Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>
///Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> 调用文件夹对话框
///Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>
[Editor(Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>typeofTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>(System.Windows.Forms.Design.FolderNameEditor), Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>typeofTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>(System.Drawing.Design.UITypeEditor))]
[Optional, NotChecked]
[DefaultValue(Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>""Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>)]
///Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>
///Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> 属性名
///Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>
publicTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>stringTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> OutputDirectory
{
Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>get
{
Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>returnTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> _outputDirectory;
}
Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>set
{
Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>ifTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> (value.EndsWith(Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>"\\"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>)) value = value.Substring(0, value.Length -1);
_outputDirectory = value;
}
}
#endregion
Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>scriptTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>>
最终结果:
src="https://img8.php1.cn/3cdc5/1e789/b64/b60ceb4322e6f01f.jpeg">
src="https://img8.php1.cn/3cdc5/1e789/b64/5ce7509c5d337950.jpeg">