本文整理汇总了C#中IPreferenceFolder.FindChildFolderArray方法的典型用法代码示例。如果您正苦于以下问题:C# IPreferenceFolder.FindChildFolderArray方法的具体用法?C# IPreferenceFolder.FindChildFolderArray怎么用?C# IPreferenceFolder.FindChildFolderArray使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IPreferenceFolder
的用法示例。
在下文中一共展示了IPreferenceFolder.FindChildFolderArray方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: InitializePreference
public void InitializePreference(IPreferenceBuilder builder, IPreferenceFolder folder) {
_schemeTemplate = builder.DefineFolderArray(folder, this, "scheme");
_preferenceFolderArray = folder.FindChildFolderArray("scheme");
Debug.Assert(_preferenceFolderArray != null);
_namePreference = builder.DefineStringValue(_schemeTemplate, "name", "", null);
_promptPreference = builder.DefineStringValue(_schemeTemplate, "prompt", GenericShellScheme.DEFAULT_PROMPT_REGEX, null);
_backspacePreference = builder.DefineStringValue(_schemeTemplate, "backspace", "", null);
_commandListPreference = builder.DefineStringValue(_schemeTemplate, "commands", "", null);
}
示例2: InitializePreference
public void InitializePreference(IPreferenceBuilder builder, IPreferenceFolder folder) {
_originalFolder = folder;
_adapter = new CoreServicePreferenceAdapter(folder);
_adapter.DefineItems(builder);
AboutBoxUtil.InitPreference(builder, folder);
_windowTemplatePreference = builder.DefineFolderArray(folder, this, "mainwindow");
_windowArrayPreference = folder.FindChildFolderArray("mainwindow");
Debug.Assert(_windowArrayPreference != null);
_windowPositionPreference = builder.DefineStringValue(_windowTemplatePreference, "position", "", null);
_windowSplitFormatPreference = builder.DefineStringValue(_windowTemplatePreference, "format", "", null);
_toolBarFormatPreference = builder.DefineStringValue(_windowTemplatePreference, "toolbar", "", null);
_tabRowCountPreference = builder.DefineIntValue(_windowTemplatePreference, "tabrowcount", 1, null);
//add listener
folder.AddChangeListener(new ChangeListener(_adapter));
}