📄 sharpdevelopstringvaluefilter.cs
字号:
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Mike Krüger" email="mike@icsharpcode.net"/>
// <version>$Revision: 915 $</version>
// </file>
using System;
using System.Xml;
using System.Collections;
using System.Drawing;
using System.Reflection;
using System.Windows.Forms;
using ICSharpCode.Core;
namespace ICSharpCode.SharpDevelop.Gui.XmlForms
{
/// <summary>
/// This interface is used to filter the values defined in the xml files.
/// It could be used for the localization of control texts.
/// </summary>
public class SharpDevelopStringValueFilter : IStringValueFilter
{
/// <summary>
/// Is called for each value string in the definition xml file.
/// </summary>
/// <returns>
/// The filtered text value
/// </returns>
public string GetFilteredValue(string originalValue)
{
// bool useFlatStyle = Crownwood.Magic.Common.VisualStyle.IDE == (Crownwood.Magic.Common.VisualStyle)PropertyService.Get("ICSharpCode.SharpDevelop.Gui.VisualStyle", Crownwood.Magic.Common.VisualStyle.IDE);
//
// StringParser.Properties["BORDERSTYLE"] = useFlatStyle ? BorderStyle.FixedSingle.ToString() : BorderStyle.Fixed3D.ToString();
// StringParser.Properties["FLATSTYLE"] = useFlatStyle ? FlatStyle.Flat.ToString() : FlatStyle.Standard.ToString();
string back = StringParser.Parse(originalValue);
return back;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -