Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / ComponentModel / Design / DesignerVerb.cs / 1 / 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(); } } }/// Overrides object's ToString(). /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Encoder.cs
- DESCryptoServiceProvider.cs
- InternalMappingException.cs
- RoutingTable.cs
- Helper.cs
- cryptoapiTransform.cs
- ProbeMatchesCD1.cs
- DocumentViewerHelper.cs
- Int64.cs
- NativeDirectoryServicesQueryAPIs.cs
- RawKeyboardInputReport.cs
- DesignOnlyAttribute.cs
- XamlSerializerUtil.cs
- figurelengthconverter.cs
- basecomparevalidator.cs
- ClientProxyGenerator.cs
- TextWriter.cs
- GACMembershipCondition.cs
- BaseTreeIterator.cs
- ObjectListCommand.cs
- Span.cs
- Material.cs
- SQLDecimal.cs
- LinqToSqlWrapper.cs
- StreamWriter.cs
- WmpBitmapEncoder.cs
- FontNamesConverter.cs
- JournalEntryStack.cs
- Int64Converter.cs
- ThreadAbortException.cs
- BitmapEffectrendercontext.cs
- BinaryFormatterWriter.cs
- HttpCookie.cs
- ImportContext.cs
- DataSet.cs
- OletxTransactionManager.cs
- ReferenceConverter.cs
- DataGridViewSelectedColumnCollection.cs
- SrgsSemanticInterpretationTag.cs
- RequestSecurityTokenForRemoteTokenFactory.cs
- IBuiltInEvidence.cs
- AccessedThroughPropertyAttribute.cs
- BufferBuilder.cs
- relpropertyhelper.cs
- AdapterUtil.cs
- Base64Stream.cs
- Missing.cs
- XmlSerializationGeneratedCode.cs
- GetMemberBinder.cs
- Base64Decoder.cs
- SoapElementAttribute.cs
- SimpleType.cs
- FixedBufferAttribute.cs
- XmlWellformedWriter.cs
- LazyTextWriterCreator.cs
- ThrowHelper.cs
- RequestQueue.cs
- SerializerWriterEventHandlers.cs
- ExtractorMetadata.cs
- LogoValidationException.cs
- ZipIOLocalFileHeader.cs
- TransactionCache.cs
- RadioButton.cs
- ControlCollection.cs
- isolationinterop.cs
- NetworkAddressChange.cs
- HtmlCalendarAdapter.cs
- DataGridViewCellValidatingEventArgs.cs
- MonitoringDescriptionAttribute.cs
- ProviderConnectionPoint.cs
- XdrBuilder.cs
- SystemTcpStatistics.cs
- PackagePartCollection.cs
- OrderPreservingSpoolingTask.cs
- TextDataBindingHandler.cs
- ExpressionUtilities.cs
- GregorianCalendar.cs
- MergeLocalizationDirectives.cs
- WebBrowserUriTypeConverter.cs
- TraceUtility.cs
- GcSettings.cs
- XamlTreeBuilderBamlRecordWriter.cs
- Constants.cs
- HttpDictionary.cs
- WindowsListViewGroupSubsetLink.cs
- TransformPattern.cs
- QueryCacheEntry.cs
- FileNameEditor.cs
- QuadTree.cs
- ServiceCredentialsElement.cs
- SchemaLookupTable.cs
- oledbmetadatacollectionnames.cs
- DefaultShape.cs
- NavigationProgressEventArgs.cs
- _KerberosClient.cs
- Size3DConverter.cs
- CharAnimationUsingKeyFrames.cs
- ImageKeyConverter.cs
- CanonicalFormWriter.cs
- PageAsyncTaskManager.cs