本文整理汇总了C#中System.ComponentModel.Design.DesignerActionItemCollection.Add方法的典型用法代码示例。如果您正苦于以下问题:C# DesignerActionItemCollection.Add方法的具体用法?C# DesignerActionItemCollection.Add怎么用?C# DesignerActionItemCollection.Add使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.ComponentModel.Design.DesignerActionItemCollection
的用法示例。
在下文中一共展示了DesignerActionItemCollection.Add方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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;
}
示例2: 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;
}
示例3: GetSortedActionItems
public override DesignerActionItemCollection GetSortedActionItems()
{
DesignerActionItemCollection items = new DesignerActionItemCollection();
items.Add(new DesignerActionMethodItem(this, "ChooseImage", System.Design.SR.GetString("ChooseImageDisplayName"), System.Design.SR.GetString("PropertiesCategoryName"), System.Design.SR.GetString("ChooseImageDescription"), true));
items.Add(new DesignerActionPropertyItem("SizeMode", System.Design.SR.GetString("SizeModeDisplayName"), System.Design.SR.GetString("PropertiesCategoryName"), System.Design.SR.GetString("SizeModeDescription")));
return items;
}
示例4: 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;
}
示例5: 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;
}
示例6: 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 Brandcaptcha, you need an API key", string.Empty));
return items;
}
示例7: 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;
}
示例8: 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;
}
示例9: 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;
}
示例10: 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
示例11: GetSortedActionItems
public override DesignerActionItemCollection GetSortedActionItems()
{
DesignerActionItemCollection items = new DesignerActionItemCollection();
if (this.AllowDynamicData)
{
items.Add(new DesignerActionPropertyItem("EnableDynamicData", System.Design.SR.GetString("FormView_EnableDynamicData"), "Behavior", System.Design.SR.GetString("FormView_EnableDynamicDataDesc")));
}
if (this.AllowPaging)
{
items.Add(new DesignerActionPropertyItem("EnablePaging", System.Design.SR.GetString("FormView_EnablePaging"), "Behavior", System.Design.SR.GetString("FormView_EnablePagingDesc")));
}
return items;
}
示例12: 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 (_palette != null)
{
// Add the list of panel specific actions
actions.Add(new KryptonDesignerActionItem(new DesignerVerb("Reset to Defaults", new EventHandler(OnResetClick)), "Actions"));
actions.Add(new KryptonDesignerActionItem(new DesignerVerb("Populate from Base", new EventHandler(OnPopulateClick)), "Actions"));
actions.Add(new KryptonDesignerActionItem(new DesignerVerb("Import from Xml file...", new EventHandler(OnImportClick)), "Actions"));
actions.Add(new KryptonDesignerActionItem(new DesignerVerb("Export to Xml file...", new EventHandler(OnExportClick)), "Actions"));
}
return actions;
}
示例13: GetSortedActionItems
// Implementation of this abstract method creates smart tag
// items, associates their targets, and collects into list.
public override DesignerActionItemCollection GetSortedActionItems()
{
DesignerActionItemCollection items = new DesignerActionItemCollection();
items.Add(new DesignerActionHeaderItem("Behavior"));
items.Add(new DesignerActionPropertyItem("SelectedPage", "Selected Page", "Behavior", "Select a page."));
//Create entries for static Information section.
StringBuilder location = new StringBuilder("Location: ");
location.Append(multiPanel.Location);
StringBuilder size = new StringBuilder("Size: ");
size.Append(multiPanel.Size);
items.Add(new DesignerActionMethodItem(this, "AddPage", "Add page", "Behavior", "Add a new page.", true));
items.Add(new DesignerActionMethodItem(this, "RemovePage", "Remove page", "Behavior", "Remove the selected page.", true));
return items;
}
示例14: GetSortedActionItems
public override DesignerActionItemCollection GetSortedActionItems()
{
DesignerActionItemCollection items = new DesignerActionItemCollection();
items.Add(new DesignerActionMethodItem(
this,
"InvokeItemDialog",
"编辑项...",
true));
return items;
}
示例15: GetSortedActionItems
public override DesignerActionItemCollection GetSortedActionItems()
{
DesignerActionItemCollection items = new DesignerActionItemCollection();
items.Add(new DesignerActionHeaderItem("Spoke Color"));
items.Add(new DesignerActionPropertyItem("SpokeColor", "Spoke Color", "Spoke Color"));
items.Add(new DesignerActionPropertyItem("HotSpokeColor", "Hot Spoke Color", "Spoke Color"));
items.Add(new DesignerActionHeaderItem("Spoke Style"));
items.Add(new DesignerActionPropertyItem("StartCap", "Start Cap", "Spoke Style"));
items.Add(new DesignerActionPropertyItem("EndCap", "End Cap", "Spoke Style"));
items.Add(new DesignerActionHeaderItem("About"));
items.Add(new DesignerActionMethodItem(this, "OnSendMail", "Send Mail:[email protected]", "About"));
items.Add(new DesignerActionTextItem("Copyright(C)", "About"));
return items;
}