本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例10: GetSortedActionItems
public override DesignerActionItemCollection GetSortedActionItems()
{
DesignerActionItemCollection items = new DesignerActionItemCollection();
items.Add(new DesignerActionMethodItem(
this,
"InvokeItemDialog",
"编辑项...",
true));
return items;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}