コード例 #1
0
 /// <summary>
 /// Shows the template completion window.
 /// </summary>
 /// <param name="textEditorControl">The text editor control.</param>
 /// <param name="snippets">The snippets (text template).</param>
 /// <param name="imageList">The image list to use in the completion window.</param>
 /// <param name="snippetImageIndex">Index of the snippet image in the <paramref name="imageList"/>.</param>
 /// <param name="ch">The character that is going to be inserted. <c>'\0'</c> if no character.</param>
 public static void ShowTemplateCompletionWindow(TextEditorControl textEditorControl, IEnumerable<Snippet> snippets, ImageList imageList, int snippetImageIndex, char ch)
 {
     SnippetCompletionDataProvider snippetCompletionDataProvider = new SnippetCompletionDataProvider(snippets, imageList, snippetImageIndex);
       textEditorControl.ShowCompletionWindow(snippetCompletionDataProvider, ch, false);
 }
コード例 #2
0
ファイル: Snippet.cs プロジェクト: pascalorama/MDStudio
        /// <summary>
        /// Shows the template completion window.
        /// </summary>
        /// <param name="textEditorControl">The text editor control.</param>
        /// <param name="snippets">The snippets (text template).</param>
        /// <param name="imageList">The image list to use in the completion window.</param>
        /// <param name="snippetImageIndex">Index of the snippet image in the <paramref name="imageList"/>.</param>
        /// <param name="ch">The character that is going to be inserted. <c>'\0'</c> if no character.</param>
        public static void ShowTemplateCompletionWindow(TextEditorControl textEditorControl, IEnumerable <Snippet> snippets, ImageList imageList, int snippetImageIndex, char ch)
        {
            SnippetCompletionDataProvider snippetCompletionDataProvider = new SnippetCompletionDataProvider(snippets, imageList, snippetImageIndex);

            textEditorControl.ShowCompletionWindow(snippetCompletionDataProvider, ch, false);
        }