當前位置: 首頁>>代碼示例>>C#>>正文


C# Design.DesignerActionItemCollection類代碼示例

本文整理匯總了C#中System.ComponentModel.Design.DesignerActionItemCollection的典型用法代碼示例。如果您正苦於以下問題:C# DesignerActionItemCollection類的具體用法?C# DesignerActionItemCollection怎麽用?C# DesignerActionItemCollection使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


DesignerActionItemCollection類屬於System.ComponentModel.Design命名空間,在下文中一共展示了DesignerActionItemCollection類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: GetSortedActionItems

 public override DesignerActionItemCollection GetSortedActionItems()
 {
     DesignerActionItemCollection items = new DesignerActionItemCollection();
     items.Add(new DesignerActionHeaderItem("API Key"));
     items.Add(new DesignerActionTextItem("To use reCAPTCHA, you need an API key from http://admin.recaptcha.net/", string.Empty));
     return items;
 }
開發者ID:kohku,項目名稱:codefactory,代碼行數:7,代碼來源:RecaptchaControlDesign.cs

示例2: GetSortedActionItems

 public override DesignerActionItemCollection GetSortedActionItems()
 {
     DesignerActionItemCollection items = new DesignerActionItemCollection();
     items.Add(new DesignerActionMethodItem(this, "InvokeNodesDialog", System.Design.SR.GetString("InvokeNodesDialogDisplayName"), System.Design.SR.GetString("PropertiesCategoryName"), System.Design.SR.GetString("InvokeNodesDialogDescription"), true));
     items.Add(new DesignerActionPropertyItem("ImageList", System.Design.SR.GetString("ImageListDisplayName"), System.Design.SR.GetString("PropertiesCategoryName"), System.Design.SR.GetString("ImageListDescription")));
     return items;
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:7,代碼來源:TreeViewActionList.cs

示例3: GetSortedActionItems

 public override DesignerActionItemCollection GetSortedActionItems()
 {
     DesignerActionItemCollection items = new DesignerActionItemCollection();
     PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(this._listControlDesigner.Component);
     PropertyDescriptor descriptor = properties["DataSourceID"];
     if ((descriptor != null) && descriptor.IsBrowsable)
     {
         items.Add(new DesignerActionMethodItem(this, "ConnectToDataSource", System.Design.SR.GetString("ListControl_ConfigureDataVerb"), System.Design.SR.GetString("BaseDataBoundControl_DataActionGroup"), System.Design.SR.GetString("BaseDataBoundControl_ConfigureDataVerbDesc")));
     }
     ControlDesigner designer = this._dataSourceDesigner as ControlDesigner;
     if (designer != null)
     {
         ((DesignerActionMethodItem) items[0]).RelatedComponent = designer.Component;
     }
     descriptor = properties["Items"];
     if ((descriptor != null) && descriptor.IsBrowsable)
     {
         items.Add(new DesignerActionMethodItem(this, "EditItems", System.Design.SR.GetString("ListControl_EditItems"), "Actions", System.Design.SR.GetString("ListControl_EditItemsDesc")));
     }
     descriptor = properties["AutoPostBack"];
     if ((descriptor != null) && descriptor.IsBrowsable)
     {
         items.Add(new DesignerActionPropertyItem("AutoPostBack", System.Design.SR.GetString("ListControl_EnableAutoPostBack"), "Behavior", System.Design.SR.GetString("ListControl_EnableAutoPostBackDesc")));
     }
     return items;
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:26,代碼來源:ListControlActionList.cs

示例4: GetSortedActionItems

 public override DesignerActionItemCollection GetSortedActionItems()
 {
     DesignerActionItemCollection items = new DesignerActionItemCollection();
     if (!this.IsReadOnly)
     {
         items.Add(new DesignerActionMethodItem(this, "InvokeEmbedVerb", System.Design.SR.GetString("ToolStripDesignerEmbedVerb"), "", System.Design.SR.GetString("ToolStripDesignerEmbedVerbDesc"), true));
     }
     if (this.CanAddItems)
     {
         if (!(this._toolStrip is StatusStrip))
         {
             items.Add(new DesignerActionMethodItem(this, "InvokeInsertStandardItemsVerb", System.Design.SR.GetString("ToolStripDesignerStandardItemsVerb"), "", System.Design.SR.GetString("ToolStripDesignerStandardItemsVerbDesc"), true));
         }
         items.Add(new DesignerActionPropertyItem("RenderMode", System.Design.SR.GetString("ToolStripActionList_RenderMode"), System.Design.SR.GetString("ToolStripActionList_Layout"), System.Design.SR.GetString("ToolStripActionList_RenderModeDesc")));
     }
     if (!(this._toolStrip.Parent is ToolStripPanel))
     {
         items.Add(new DesignerActionPropertyItem("Dock", System.Design.SR.GetString("ToolStripActionList_Dock"), System.Design.SR.GetString("ToolStripActionList_Layout"), System.Design.SR.GetString("ToolStripActionList_DockDesc")));
     }
     if (!(this._toolStrip is StatusStrip))
     {
         items.Add(new DesignerActionPropertyItem("GripStyle", System.Design.SR.GetString("ToolStripActionList_GripStyle"), System.Design.SR.GetString("ToolStripActionList_Layout"), System.Design.SR.GetString("ToolStripActionList_GripStyleDesc")));
     }
     return items;
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:25,代碼來源:ToolStripActionList.cs

示例5: GetSortedActionItems

 public override DesignerActionItemCollection GetSortedActionItems()
 {
     DesignerActionItemCollection items = new DesignerActionItemCollection();
     items.Add(new DesignerActionMethodItem(this, "EditFields", System.Design.SR.GetString("DetailsView_EditFieldsVerb"), "Action", System.Design.SR.GetString("DetailsView_EditFieldsDesc")));
     items.Add(new DesignerActionMethodItem(this, "AddNewField", System.Design.SR.GetString("DetailsView_AddNewFieldVerb"), "Action", System.Design.SR.GetString("DetailsView_AddNewFieldDesc")));
     if (this.AllowMoveUp)
     {
         items.Add(new DesignerActionMethodItem(this, "MoveFieldUp", System.Design.SR.GetString("DetailsView_MoveFieldUpVerb"), "Action", System.Design.SR.GetString("DetailsView_MoveFieldUpDesc")));
     }
     if (this.AllowMoveDown)
     {
         items.Add(new DesignerActionMethodItem(this, "MoveFieldDown", System.Design.SR.GetString("DetailsView_MoveFieldDownVerb"), "Action", System.Design.SR.GetString("DetailsView_MoveFieldDownDesc")));
     }
     if (this.AllowRemoveField)
     {
         items.Add(new DesignerActionMethodItem(this, "RemoveField", System.Design.SR.GetString("DetailsView_RemoveFieldVerb"), "Action", System.Design.SR.GetString("DetailsView_RemoveFieldDesc")));
     }
     if (this.AllowPaging)
     {
         items.Add(new DesignerActionPropertyItem("EnablePaging", System.Design.SR.GetString("DetailsView_EnablePaging"), "Behavior", System.Design.SR.GetString("DetailsView_EnablePagingDesc")));
     }
     if (this.AllowInserting)
     {
         items.Add(new DesignerActionPropertyItem("EnableInserting", System.Design.SR.GetString("DetailsView_EnableInserting"), "Behavior", System.Design.SR.GetString("DetailsView_EnableInsertingDesc")));
     }
     if (this.AllowEditing)
     {
         items.Add(new DesignerActionPropertyItem("EnableEditing", System.Design.SR.GetString("DetailsView_EnableEditing"), "Behavior", System.Design.SR.GetString("DetailsView_EnableEditingDesc")));
     }
     if (this.AllowDeleting)
     {
         items.Add(new DesignerActionPropertyItem("EnableDeleting", System.Design.SR.GetString("DetailsView_EnableDeleting"), "Behavior", System.Design.SR.GetString("DetailsView_EnableDeletingDesc")));
     }
     return items;
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:35,代碼來源:DetailsViewActionList.cs

示例6: GetSortedActionItems

 public override DesignerActionItemCollection GetSortedActionItems()
 {
     DesignerActionItemCollection items = new DesignerActionItemCollection();
     items.Add(new DesignerActionPropertyItem("ImageSize", System.Design.SR.GetString("ImageListActionListImageSizeDisplayName"), System.Design.SR.GetString("PropertiesCategoryName"), System.Design.SR.GetString("ImageListActionListImageSizeDescription")));
     items.Add(new DesignerActionPropertyItem("ColorDepth", System.Design.SR.GetString("ImageListActionListColorDepthDisplayName"), System.Design.SR.GetString("PropertiesCategoryName"), System.Design.SR.GetString("ImageListActionListColorDepthDescription")));
     items.Add(new DesignerActionMethodItem(this, "ChooseImages", System.Design.SR.GetString("ImageListActionListChooseImagesDisplayName"), System.Design.SR.GetString("LinksCategoryName"), System.Design.SR.GetString("ImageListActionListChooseImagesDescription"), true));
     return items;
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:8,代碼來源:ImageListActionList.cs

示例7: GetSortedActionItems

            // Create the ActionItem collection and add one command
            public override DesignerActionItemCollection GetSortedActionItems()
            {
                // fixme -- I can't get this to open up automatically (
                DesignerActionItemCollection items = new DesignerActionItemCollection();
                items.Add(new DesignerActionHeaderItem("API Key"));
                items.Add(new DesignerActionTextItem("To use reCAPTCHA, you need an API key from https://www.google.com/recaptcha/admin/create", string.Empty));

                return items;
            }
開發者ID:mucahiderdogan,項目名稱:recaptcha,代碼行數:10,代碼來源:RecaptchaControlDesigner.cs

示例8: GetSortedActionItems

 public override DesignerActionItemCollection GetSortedActionItems()
 {
     DesignerActionItemCollection items = new DesignerActionItemCollection();
     items.Add(new DesignerActionHeaderItem("Apariencia"));
     items.Add(new DesignerActionHeaderItem("Comportamiento"));
     items.Add(new DesignerActionPropertyItem("CajaTexto", "Caja de Texto", "Comportamiento", "Permite establecer una Caja de Texto al boton"));
     items.Add(new DesignerActionPropertyItem("CajaTextoConBoton", "Caja de Texto con Boton", "Comportamiento", "Permite establecer un ButtonEdit al boton"));
     items.Add(new DesignerActionPropertyItem("Imagen", "Imagen del boton", "Apariencia", "Permite colocar una imagen estandar al boton"));
     return items;
 }
開發者ID:tRAKALOFF,項目名稱:seguridadcorporativa,代碼行數:10,代碼來源:PlantillaBotonActionList.cs

示例9: GetSortedActionItems

 public override DesignerActionItemCollection GetSortedActionItems()
 {
     DesignerActionItemCollection sortedActionItems = base.GetSortedActionItems();
     if (sortedActionItems == null)
     {
         sortedActionItems = new DesignerActionItemCollection();
     }
     sortedActionItems.Add(new DesignerActionMethodItem(this, "InvokePropertyBuilder", System.Design.SR.GetString("BDL_PropertyBuilderVerb"), System.Design.SR.GetString("BDL_BehaviorGroup"), System.Design.SR.GetString("BDL_PropertyBuilderDesc")));
     return sortedActionItems;
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:10,代碼來源:BaseDataListActionList.cs

示例10: GetSortedActionItems

 public override DesignerActionItemCollection GetSortedActionItems()
 {
     DesignerActionItemCollection items = new DesignerActionItemCollection();
     items.Add(new DesignerActionMethodItem(
         this,
         "InvokeItemDialog",
         "編輯項...",
         true));
     return items;
 }
開發者ID:jxdong1013,項目名稱:archivems,代碼行數:10,代碼來源:PushPanelDesigner.cs

示例11: GetSortedActionItems

		public override DesignerActionItemCollection GetSortedActionItems()
		{
			DesignerActionItemCollection actions = new DesignerActionItemCollection();
			actions.Add (new DesignerActionPropertyItem ("DrawBorder","DrawBorder","Appearance"));
			actions.Add (new DesignerActionPropertyItem ("Font","Font","Appearance"));
			actions.Add (new DesignerActionPropertyItem ("ContentAlignment","ContentAlignment","Appearance"));
			actions.Add (new DesignerActionPropertyItem ("StringTrimming","StringTrimming","Appearance"));
			actions.Add (new DesignerActionPropertyItem ("FormatString","FormatString","Appearance"));
			return actions;
		}
開發者ID:hpsa,項目名稱:SharpDevelop,代碼行數:10,代碼來源:TextBasedDesignerActionList.cs

示例12: GetSortedActionItems

 public override DesignerActionItemCollection GetSortedActionItems()
 {
     DesignerActionItemCollection items = new DesignerActionItemCollection();
     items.Add(new DesignerActionPropertyItem("RenderMode", System.Design.SR.GetString("ToolStripActionList_RenderMode"), System.Design.SR.GetString("ToolStripActionList_Layout"), System.Design.SR.GetString("ToolStripActionList_RenderModeDesc")));
     if (this._toolStripDropDown is ToolStripDropDownMenu)
     {
         items.Add(new DesignerActionPropertyItem("ShowImageMargin", System.Design.SR.GetString("ContextMenuStripActionList_ShowImageMargin"), System.Design.SR.GetString("ToolStripActionList_Layout"), System.Design.SR.GetString("ContextMenuStripActionList_ShowImageMarginDesc")));
         items.Add(new DesignerActionPropertyItem("ShowCheckMargin", System.Design.SR.GetString("ContextMenuStripActionList_ShowCheckMargin"), System.Design.SR.GetString("ToolStripActionList_Layout"), System.Design.SR.GetString("ContextMenuStripActionList_ShowCheckMarginDesc")));
     }
     return items;
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:11,代碼來源:ContextMenuStripActionList.cs

示例13: GetSortedActionItems

 public override DesignerActionItemCollection GetSortedActionItems()
 {
     DesignerActionItemCollection items = new DesignerActionItemCollection();
     items.Add(new DesignerActionMethodItem(this, "InvokeItemsDialog", System.Design.SR.GetString("ListViewActionListEditItemsDisplayName"), System.Design.SR.GetString("PropertiesCategoryName"), System.Design.SR.GetString("ListViewActionListEditItemsDescription"), true));
     items.Add(new DesignerActionMethodItem(this, "InvokeColumnsDialog", System.Design.SR.GetString("ListViewActionListEditColumnsDisplayName"), System.Design.SR.GetString("PropertiesCategoryName"), System.Design.SR.GetString("ListViewActionListEditColumnsDescription"), true));
     items.Add(new DesignerActionMethodItem(this, "InvokeGroupsDialog", System.Design.SR.GetString("ListViewActionListEditGroupsDisplayName"), System.Design.SR.GetString("PropertiesCategoryName"), System.Design.SR.GetString("ListViewActionListEditGroupsDescription"), true));
     items.Add(new DesignerActionPropertyItem("View", System.Design.SR.GetString("ListViewActionListViewDisplayName"), System.Design.SR.GetString("PropertiesCategoryName"), System.Design.SR.GetString("ListViewActionListViewDescription")));
     items.Add(new DesignerActionPropertyItem("SmallImageList", System.Design.SR.GetString("ListViewActionListSmallImagesDisplayName"), System.Design.SR.GetString("PropertiesCategoryName"), System.Design.SR.GetString("ListViewActionListSmallImagesDescription")));
     items.Add(new DesignerActionPropertyItem("LargeImageList", System.Design.SR.GetString("ListViewActionListLargeImagesDisplayName"), System.Design.SR.GetString("PropertiesCategoryName"), System.Design.SR.GetString("ListViewActionListLargeImagesDescription")));
     return items;
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:11,代碼來源:ListViewActionList.cs

示例14: GetSortedActionItems

 public override DesignerActionItemCollection GetSortedActionItems()
 {
     DesignerActionItemCollection items = new DesignerActionItemCollection();
     for (int i = 0; i < this._verbs.Length; i++)
     {
         if ((this._verbs[i].Visible && this._verbs[i].Enabled) && this._verbs[i].Supported)
         {
             items.Add(new DesignerActionVerbItem(this._verbs[i]));
         }
     }
     return items;
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:12,代碼來源:DesignerActionVerbList.cs

示例15: GetSortedActionItems

        /// <summary>
        /// Returns the collection of DesignerActionItem objects contained in the list.
        /// </summary>
        /// <returns>A DesignerActionItem array that contains the items in this list.</returns>
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            // Create a new collection for holding the single item we want to create
            DesignerActionItemCollection actions = new DesignerActionItemCollection();

            // This can be null when deleting a component instance at design time
            if (_command != null)
            {
            }

            return actions;
        }
開發者ID:ComponentFactory,項目名稱:Krypton,代碼行數:16,代碼來源:KryptonCommandActionList.cs


注:本文中的System.ComponentModel.Design.DesignerActionItemCollection類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。