Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / Design / DesignerVerb.cs / 1305376 / DesignerVerb.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel.Design { using Microsoft.Win32; using System; using System.ComponentModel; using System.Diagnostics; using System.Security.Permissions; using System.Text.RegularExpressions; ////// [HostProtection(SharedState = true)] [System.Runtime.InteropServices.ComVisible(true)] [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name="FullTrust")] [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")] public class DesignerVerb : MenuCommand { ///Represents a verb that can be executed by a component's designer. ////// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public DesignerVerb(string text, EventHandler handler) : base(handler, StandardCommands.VerbFirst) { Properties["Text"] = text == null ? null : Regex.Replace(text, @"\(\&.\)", ""); // VSWHIDBEY 485835 } ////// Initializes a new instance of the ///class. /// /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public DesignerVerb(string text, EventHandler handler, CommandID startCommandID) : base(handler, startCommandID) { Properties["Text"] = text == null ? null : Regex.Replace(text, @"\(\&.\)", "");// VSWHIDBEY 485835 } ////// Initializes a new instance of the ////// class. /// /// Gets or sets the description of the menu item for the verb. /// public string Description { get { object result = Properties["Description"]; if (result == null) { return String.Empty; } return (string)result; } set { Properties["Description"] = value; } } ////// public string Text { get { object result = Properties["Text"]; if (result == null) { return String.Empty; } return (string)result; } } ////// Gets or sets the text to show on the menu item for the verb. /// ////// public override string ToString() { return Text + " : " + base.ToString(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Overrides object's ToString(). /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PersonalizationProvider.cs
- PageAsyncTaskManager.cs
- MenuBindingsEditor.cs
- ButtonField.cs
- _SslSessionsCache.cs
- CheckableControlBaseAdapter.cs
- ByteStorage.cs
- OLEDB_Util.cs
- Deflater.cs
- PopupRoot.cs
- DataComponentGenerator.cs
- NativeMethods.cs
- DataTransferEventArgs.cs
- TrailingSpaceComparer.cs
- GridViewDeletedEventArgs.cs
- ActivityDesignerAccessibleObject.cs
- Assembly.cs
- TimeManager.cs
- PeerToPeerException.cs
- SoapSchemaExporter.cs
- LinqDataSourceEditData.cs
- FieldTemplateFactory.cs
- HWStack.cs
- DBCommand.cs
- ConnectionInterfaceCollection.cs
- CryptoApi.cs
- BoundsDrawingContextWalker.cs
- Control.cs
- CurrencyManager.cs
- MenuItemAutomationPeer.cs
- VectorCollectionConverter.cs
- EventMappingSettings.cs
- DecoderNLS.cs
- Pkcs7Recipient.cs
- DataColumnMapping.cs
- SEHException.cs
- ScopeCompiler.cs
- FormatterServices.cs
- StrongTypingException.cs
- ContextStack.cs
- SerialReceived.cs
- TargetPerspective.cs
- ContentTextAutomationPeer.cs
- ListViewEditEventArgs.cs
- MailAddress.cs
- ZipIOBlockManager.cs
- ClientApiGenerator.cs
- ScriptResourceInfo.cs
- DesignBindingValueUIHandler.cs
- Expression.cs
- NTAccount.cs
- Size3DConverter.cs
- PointAnimationBase.cs
- InstalledFontCollection.cs
- List.cs
- ControlPaint.cs
- XmlNavigatorFilter.cs
- HtmlAnchor.cs
- CustomErrorsSection.cs
- HtmlSelect.cs
- DeferredSelectedIndexReference.cs
- EqualityArray.cs
- ContextMarshalException.cs
- DesignSurfaceManager.cs
- LostFocusEventManager.cs
- TabControlEvent.cs
- UITypeEditor.cs
- WebRequestModulesSection.cs
- SafeHandle.cs
- SqlVisitor.cs
- AllowedAudienceUriElement.cs
- nulltextcontainer.cs
- PackageDigitalSignatureManager.cs
- UnitySerializationHolder.cs
- UserValidatedEventArgs.cs
- ProcessModule.cs
- AutomationPropertyInfo.cs
- BroadcastEventHelper.cs
- Transaction.cs
- MetadataItemEmitter.cs
- ExpressionBuilder.cs
- SqlAggregateChecker.cs
- AssemblyNameProxy.cs
- CurrentChangingEventArgs.cs
- LOSFormatter.cs
- ReadOnlyHierarchicalDataSourceView.cs
- WebPartHelpVerb.cs
- CriticalHandle.cs
- RbTree.cs
- ExpressionBinding.cs
- TypeUnloadedException.cs
- rsa.cs
- ConfigsHelper.cs
- WebResourceAttribute.cs
- CmsUtils.cs
- PropertyMappingExceptionEventArgs.cs
- BrowserTree.cs
- WebServiceData.cs
- Page.cs
- StylusOverProperty.cs