本文整理汇总了C#中MonoDevelop.Components.SearchEntry.AddFilterOption方法的典型用法代码示例。如果您正苦于以下问题:C# SearchEntry.AddFilterOption方法的具体用法?C# SearchEntry.AddFilterOption怎么用?C# SearchEntry.AddFilterOption使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MonoDevelop.Components.SearchEntry
的用法示例。
在下文中一共展示了SearchEntry.AddFilterOption方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ShowFileMaskUI
void ShowFileMaskUI ()
{
if (labelFileMask != null)
return;
uint row;
if (checkbuttonRecursively != null)
row = TableGetRowForItem (tableFindAndReplace, checkbuttonRecursively) + 1;
else
row = TableGetRowForItem (tableFindAndReplace, labelScope) + 1;
labelFileMask = new Label {
LabelProp = GettextCatalog.GetString ("_File Mask:"),
UseUnderline = true,
Xalign = 0f
};
labelFileMask.Show ();
searchentryFileMask = new SearchEntry () {
ForceFilterButtonVisible = false,
IsCheckMenu = true,
ActiveFilterID = 0,
Visible = true,
Ready = true,
};
var checkMenuItem = searchentryFileMask.AddFilterOption (0, GettextCatalog.GetString ("Include binary files"));
checkMenuItem.DrawAsRadio = false;
checkMenuItem.Active = properties.Get ("IncludeBinaryFiles", false);
checkMenuItem.Toggled += delegate {
properties.Set ("IncludeBinaryFiles", checkMenuItem.Active);
};
var checkMenuItem1 = searchentryFileMask.AddFilterOption (1, GettextCatalog.GetString ("Include hidden files and directories"));
checkMenuItem1.DrawAsRadio = false;
checkMenuItem1.Active = properties.Get ("IncludeHiddenFiles", false);
checkMenuItem1.Toggled += delegate {
properties.Set ("IncludeHiddenFiles", checkMenuItem1.Active);
};
searchentryFileMask.Query = properties.Get ("MonoDevelop.FindReplaceDialogs.FileMask", "");
searchentryFileMask.Show ();
TableAddRow (tableFindAndReplace, row, labelFileMask, searchentryFileMask);
}