本文整理匯總了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);
}