public override DesignerActionItemCollection GetSortedActionItems() { DesignerActionItemCollection items = new DesignerActionItemCollection(); items.Add(new DesignerActionHeaderItem("Speller's UI Options", "UIOptions")); DesignerActionItem propItem; propItem = new DesignerActionTextItem("Set the UI extension (toolstrip, menu) for the main UI.", "UIOptions"); propItem.AllowAssociate = true; items.Add(propItem); return(items); }
public override DesignerActionItemCollection GetSortedActionItems() { DesignerActionItemCollection items = new DesignerActionItemCollection(); items.Add(new DesignerActionHeaderItem("Ruler Options", "Ruler")); DesignerActionItem propItem; propItem = new DesignerActionTextItem("Set the appearance of the ruler inside the editor's container.", "Ruler"); propItem.AllowAssociate = true; items.Add(propItem); propItem = new DesignerActionPropertyItem("VRuler", "&Vertical Ruler", "Ruler"); propItem.AllowAssociate = true; items.Add(propItem); propItem = new DesignerActionPropertyItem("HRuler", "&Horizontal Ruler", "Ruler"); propItem.AllowAssociate = true; items.Add(propItem); propItem = new DesignerActionHeaderItem("UI Options", "UI"); propItem.AllowAssociate = true; items.Add(propItem); propItem = new DesignerActionTextItem("Set the appearance of the toolbar and strip elements.", "UI"); propItem.AllowAssociate = true; items.Add(propItem); propItem = new DesignerActionPropertyItem("ShowToolbar", "&Show Toolbar", "UI"); propItem.AllowAssociate = true; items.Add(propItem); propItem = new DesignerActionPropertyItem("DockToolbar", "&Dock Toolbar", "UI"); propItem.AllowAssociate = true; items.Add(propItem); propItem = new DesignerActionPropertyItem("ShowMenuStrip", "&Show MenuStrip", "UI"); propItem.AllowAssociate = true; items.Add(propItem); propItem = new DesignerActionPropertyItem("ShowStatusStrip", "&Show StatusStrip", "UI"); propItem.AllowAssociate = true; items.Add(propItem); propItem = new DesignerActionHeaderItem("Information and Layout", "Layout"); propItem.AllowAssociate = true; items.Add(propItem); propItem = new DesignerActionTextItem("Informations about current layout and dock option.", "Layout"); propItem.AllowAssociate = true; items.Add(propItem); propItem = new DesignerActionTextItem(String.Format(" Size: {0} x {1}", ((Control)editor).Size.Width, ((Control)editor).Size.Height), "Layout"); propItem.AllowAssociate = true; items.Add(propItem); propItem = new DesignerActionTextItem(String.Format(" Location: x={0} y={1}", ((Control)editor).Location.X, ((Control)editor).Location.Y), "Layout"); propItem.AllowAssociate = true; items.Add(propItem); propItem = new DesignerActionPropertyItem("Dock", "&Dock Editor", "Layout"); propItem.AllowAssociate = true; items.Add(propItem); return(items); }
public void DesignerActionItem_Ctor_String_String(string displayName, string category, string expectedDisplayName) { var item = new DesignerActionTextItem(displayName, category); Assert.Equal(expectedDisplayName, item.DisplayName); Assert.Equal(category, item.Category); Assert.Null(item.Description); Assert.False(item.AllowAssociate); Assert.Empty(item.Properties); Assert.Same(item.Properties, item.Properties); Assert.IsType <HybridDictionary>(item.Properties); Assert.True(item.ShowInSourceView); }