protected override void OnSyntaxEditorTriggerActivated(ActiproSoftware.SyntaxEditor.SyntaxEditor syntaxEditor, TriggerEventArgs e)
 {
     string str = e.get_Trigger().get_Key();
     if ((str != null) && (str == "XMLCommentTagListTrigger"))
     {
         IntelliPromptMemberList list = syntaxEditor.get_IntelliPrompt().get_MemberList();
         list.ResetAllowedCharacters();
         list.set_ImageList(ActiproSoftware.SyntaxEditor.SyntaxEditor.get_ReflectionImageList());
         list.Clear();
         list.Add(new IntelliPromptMemberListItem("c", 0x33, "Indicates that text within the tag should be marked as code.  Use <code> to indicate multiple lines as code."));
         list.Add(new IntelliPromptMemberListItem("code", 0x33, "Indicates multiple lines as code. Use <c> to indicate that text within a description should be marked as code."));
         list.Add(new IntelliPromptMemberListItem("example", 0x33, "Specifies an example of how to use a method or other library member."));
         list.Add(new IntelliPromptMemberListItem("exception", 0x33, "Specifies which exceptions a class can throw.", "exception cref=\"", "\""));
         list.Add(new IntelliPromptMemberListItem("include", 0x33, "Refers to comments in another file that describe the types and members in your source code.", "include file='", "' path='[@name=\"\"]'/>"));
         list.Add(new IntelliPromptMemberListItem("list", 0x33, "Provides a container for list items.", "list type=\"", "\""));
         list.Add(new IntelliPromptMemberListItem("listheader", 0x33, "Defines the heading row of either a table or definition list."));
         list.Add(new IntelliPromptMemberListItem("item", 0x33, "Defines an item in a table or definition list."));
         list.Add(new IntelliPromptMemberListItem("term", 0x33, "A term to define, which will be defined in text."));
         list.Add(new IntelliPromptMemberListItem("description", 0x33, "Either an item in a bullet or numbered list or the definition of a term."));
         list.Add(new IntelliPromptMemberListItem("para", 0x33, "Provides a paragraph container."));
         list.Add(new IntelliPromptMemberListItem("param", 0x33, "Describes one of the parameters for the method.", "param name=\"", "\"/>"));
         list.Add(new IntelliPromptMemberListItem("paramref", 0x33, "Indicates that a word is a parameter.", "paramref name=\"", "\"/>"));
         list.Add(new IntelliPromptMemberListItem("permission", 0x33, "Documents the access of a member.", "permission cref=\"", "\""));
         list.Add(new IntelliPromptMemberListItem("remarks", 0x33, "Specifies overview information about a class or other type."));
         list.Add(new IntelliPromptMemberListItem("returns", 0x33, "Describes the return value for a method declaration."));
         list.Add(new IntelliPromptMemberListItem("see", 0x33, "Specifies a link from within text.", "see cref=\"", "\"/>"));
         list.Add(new IntelliPromptMemberListItem("seealso", 0x33, "Specifies the text that you might want to appear in a See Also section.", "seealso cref=\"", "\"/>"));
         list.Add(new IntelliPromptMemberListItem("summary", 0x33, "Describes a member for a type."));
         list.Add(new IntelliPromptMemberListItem("value", 0x33, "Describes the value for a property declaration."));
         if (list.get_Count() > 0)
         {
             list.Show();
         }
     }
 }
        protected override void OnSyntaxEditorTriggerActivated(ActiproSoftware.SyntaxEditor.SyntaxEditor syntaxEditor, TriggerEventArgs e)
        {
            string str = e.get_Trigger().get_Key();

            if (((str != null) && (str == "TagAutoCompleteTrigger")) && !syntaxEditor.get_SelectedView().get_Selection().get_IsReadOnly())
            {
                this.CompleteElementTag(syntaxEditor, syntaxEditor.get_Caret().get_Offset());
            }
        }
        protected override void OnSyntaxEditorTriggerActivated(ActiproSoftware.SyntaxEditor.SyntaxEditor syntaxEditor, TriggerEventArgs e)
        {
            string str = e.get_Trigger().get_Key();

            if ((str != null) && (str == "XMLCommentTagListTrigger"))
            {
                IntelliPromptMemberList list = syntaxEditor.get_IntelliPrompt().get_MemberList();
                list.ResetAllowedCharacters();
                list.set_ImageList(ActiproSoftware.SyntaxEditor.SyntaxEditor.get_ReflectionImageList());
                list.Clear();
                list.Add(new IntelliPromptMemberListItem("c", 0x33, "Indicates that text within the tag should be marked as code.  Use <code> to indicate multiple lines as code."));
                list.Add(new IntelliPromptMemberListItem("code", 0x33, "Indicates multiple lines as code. Use <c> to indicate that text within a description should be marked as code."));
                list.Add(new IntelliPromptMemberListItem("example", 0x33, "Specifies an example of how to use a method or other library member."));
                list.Add(new IntelliPromptMemberListItem("exception", 0x33, "Specifies which exceptions a class can throw.", "exception cref=\"", "\""));
                list.Add(new IntelliPromptMemberListItem("include", 0x33, "Refers to comments in another file that describe the types and members in your source code.", "include file='", "' path='[@name=\"\"]'/>"));
                list.Add(new IntelliPromptMemberListItem("list", 0x33, "Provides a container for list items.", "list type=\"", "\""));
                list.Add(new IntelliPromptMemberListItem("listheader", 0x33, "Defines the heading row of either a table or definition list."));
                list.Add(new IntelliPromptMemberListItem("item", 0x33, "Defines an item in a table or definition list."));
                list.Add(new IntelliPromptMemberListItem("term", 0x33, "A term to define, which will be defined in text."));
                list.Add(new IntelliPromptMemberListItem("description", 0x33, "Either an item in a bullet or numbered list or the definition of a term."));
                list.Add(new IntelliPromptMemberListItem("para", 0x33, "Provides a paragraph container."));
                list.Add(new IntelliPromptMemberListItem("param", 0x33, "Describes one of the parameters for the method.", "param name=\"", "\"/>"));
                list.Add(new IntelliPromptMemberListItem("paramref", 0x33, "Indicates that a word is a parameter.", "paramref name=\"", "\"/>"));
                list.Add(new IntelliPromptMemberListItem("permission", 0x33, "Documents the access of a member.", "permission cref=\"", "\""));
                list.Add(new IntelliPromptMemberListItem("remarks", 0x33, "Specifies overview information about a class or other type."));
                list.Add(new IntelliPromptMemberListItem("returns", 0x33, "Describes the return value for a method declaration."));
                list.Add(new IntelliPromptMemberListItem("see", 0x33, "Specifies a link from within text.", "see cref=\"", "\"/>"));
                list.Add(new IntelliPromptMemberListItem("seealso", 0x33, "Specifies the text that you might want to appear in a See Also section.", "seealso cref=\"", "\"/>"));
                list.Add(new IntelliPromptMemberListItem("summary", 0x33, "Describes a member for a type."));
                list.Add(new IntelliPromptMemberListItem("value", 0x33, "Describes the value for a property declaration."));
                if (list.get_Count() > 0)
                {
                    list.Show();
                }
            }
        }
Ejemplo n.º 4
0
        protected override void OnSyntaxEditorTriggerActivated(ActiproSoftware.SyntaxEditor.SyntaxEditor syntaxEditor, TriggerEventArgs e)
        {
            string str = e.get_Trigger().get_Key();

            if (str != null)
            {
                if (!(str == "TagAutoCompleteTrigger"))
                {
                    if (str == "TagListTrigger")
                    {
                        IntelliPromptMemberList list = syntaxEditor.get_IntelliPrompt().get_MemberList();
                        list.ResetAllowedCharacters();
                        list.set_ImageList(ActiproSoftware.SyntaxEditor.SyntaxEditor.get_ReflectionImageList());
                        list.Clear();
                        list.Add(new IntelliPromptMemberListItem("<!-- -->", 0x2d, null, "!-- ", " -->"));
                        list.Add(new IntelliPromptMemberListItem("a", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("acronym", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("address", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("applet", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("area", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("b", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("base", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("basefont", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("bdo", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("bgsound", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("big", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("blockquote", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("body", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("br", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("button", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("caption", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("center", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("cite", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("code", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("col", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("colgroup", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("dd", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("del", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("dfn", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("dir", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("div", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("dl", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("dt", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("em", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("embed", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("fieldset", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("form", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("frame", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("frameset", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("h1", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("h2", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("h3", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("h4", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("h5", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("h6", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("head", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("hr", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("html", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("i", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("iframe", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("img", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("input", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("ins", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("isindex", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("kbd", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("label", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("legend", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("li", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("link", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("listing", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("map", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("marquee", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("menu", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("meta", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("nobr", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("noframes", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("noscript", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("object", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("ol", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("option", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("p", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("param", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("plaintext", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("pre", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("q", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("s", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("samp", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("script", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("select", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("small", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("span", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("strike", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("strong", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("style", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("sub", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("sup", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("table", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("tbody", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("td", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("textarea", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("tfoot", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("th", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("thead", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("title", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("tr", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("tt", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("u", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("ul", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("var", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("xml", 0x2b));
                        list.Add(new IntelliPromptMemberListItem("xmp", 0x2b));
                        if (list.get_Count() > 0)
                        {
                            list.Show();
                        }
                    }
                }
                else
                {
                    base.OnSyntaxEditorTriggerActivated(syntaxEditor, e);
                }
            }
        }
 protected override void OnSyntaxEditorTriggerActivated(ActiproSoftware.SyntaxEditor.SyntaxEditor syntaxEditor, TriggerEventArgs e)
 {
     string str = e.get_Trigger().get_Key();
     if (((str != null) && (str == "TagAutoCompleteTrigger")) && !syntaxEditor.get_SelectedView().get_Selection().get_IsReadOnly())
     {
         this.CompleteElementTag(syntaxEditor, syntaxEditor.get_Caret().get_Offset());
     }
 }
 protected override void OnSyntaxEditorTriggerActivated(ActiproSoftware.SyntaxEditor.SyntaxEditor syntaxEditor, TriggerEventArgs e)
 {
     string str = e.get_Trigger().get_Key();
     if (str != null)
     {
         if (!(str == "TagAutoCompleteTrigger"))
         {
             if (str == "TagListTrigger")
             {
                 IntelliPromptMemberList list = syntaxEditor.get_IntelliPrompt().get_MemberList();
                 list.ResetAllowedCharacters();
                 list.set_ImageList(ActiproSoftware.SyntaxEditor.SyntaxEditor.get_ReflectionImageList());
                 list.Clear();
                 list.Add(new IntelliPromptMemberListItem("<!-- -->", 0x2d, null, "!-- ", " -->"));
                 list.Add(new IntelliPromptMemberListItem("a", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("acronym", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("address", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("applet", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("area", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("b", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("base", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("basefont", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("bdo", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("bgsound", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("big", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("blockquote", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("body", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("br", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("button", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("caption", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("center", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("cite", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("code", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("col", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("colgroup", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("dd", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("del", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("dfn", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("dir", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("div", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("dl", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("dt", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("em", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("embed", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("fieldset", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("form", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("frame", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("frameset", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("h1", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("h2", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("h3", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("h4", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("h5", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("h6", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("head", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("hr", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("html", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("i", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("iframe", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("img", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("input", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("ins", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("isindex", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("kbd", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("label", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("legend", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("li", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("link", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("listing", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("map", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("marquee", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("menu", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("meta", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("nobr", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("noframes", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("noscript", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("object", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("ol", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("option", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("p", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("param", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("plaintext", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("pre", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("q", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("s", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("samp", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("script", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("select", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("small", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("span", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("strike", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("strong", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("style", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("sub", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("sup", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("table", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("tbody", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("td", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("textarea", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("tfoot", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("th", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("thead", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("title", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("tr", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("tt", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("u", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("ul", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("var", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("xml", 0x2b));
                 list.Add(new IntelliPromptMemberListItem("xmp", 0x2b));
                 if (list.get_Count() > 0)
                 {
                     list.Show();
                 }
             }
         }
         else
         {
             base.OnSyntaxEditorTriggerActivated(syntaxEditor, e);
         }
     }
 }