Code:
/ DotNET / DotNET / 8.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
- HashHelper.cs
- EntryIndex.cs
- InfoCard.cs
- WindowsMenu.cs
- ButtonField.cs
- StringFreezingAttribute.cs
- newinstructionaction.cs
- WindowsFont.cs
- PropertyInfoSet.cs
- RotateTransform3D.cs
- SingleConverter.cs
- WeakReference.cs
- panel.cs
- FormsAuthenticationTicket.cs
- CmsInterop.cs
- ConnectionInterfaceCollection.cs
- AmbientLight.cs
- PackWebResponse.cs
- UrlPath.cs
- ImageFormat.cs
- MonthChangedEventArgs.cs
- ThreadStaticAttribute.cs
- SR.cs
- UncommonField.cs
- SqlStream.cs
- PointHitTestResult.cs
- AggregateNode.cs
- SyndicationLink.cs
- DataControlHelper.cs
- cookiecontainer.cs
- ControlCachePolicy.cs
- SoapDocumentServiceAttribute.cs
- XmlSchemaAnyAttribute.cs
- NonVisualControlAttribute.cs
- RenamedEventArgs.cs
- SqlRetyper.cs
- ListItemParagraph.cs
- _UriSyntax.cs
- DataKey.cs
- DSASignatureDeformatter.cs
- _HelperAsyncResults.cs
- ConfigurationErrorsException.cs
- Debug.cs
- ChangePassword.cs
- UnsafeMethods.cs
- SplitterPanel.cs
- ParseElement.cs
- ProjectionPathSegment.cs
- Decoder.cs
- SQLInt16.cs
- ListSourceHelper.cs
- TreeViewItemAutomationPeer.cs
- SmtpException.cs
- MetadataCache.cs
- DataGridViewAdvancedBorderStyle.cs
- ProfileBuildProvider.cs
- DecimalConstantAttribute.cs
- CollectionViewGroupInternal.cs
- CollectionEditorDialog.cs
- AbsoluteQuery.cs
- HostingPreferredMapPath.cs
- SetIterators.cs
- PassportPrincipal.cs
- HttpHeaderCollection.cs
- InputElement.cs
- StateRuntime.cs
- ScriptingSectionGroup.cs
- Effect.cs
- ListViewTableRow.cs
- RequiredAttributeAttribute.cs
- WebEncodingValidator.cs
- HtmlInputCheckBox.cs
- SendMessageContent.cs
- IRCollection.cs
- QilTypeChecker.cs
- SAPIEngineTypes.cs
- SystemColorTracker.cs
- OracleParameter.cs
- entityreference_tresulttype.cs
- OracleEncoding.cs
- XmlNodeChangedEventArgs.cs
- EventData.cs
- SqlProfileProvider.cs
- Quaternion.cs
- PackageDigitalSignatureManager.cs
- AspNetHostingPermission.cs
- LoginName.cs
- RelationshipType.cs
- SmtpNtlmAuthenticationModule.cs
- ManagementObjectCollection.cs
- ErrorHandler.cs
- TabItemWrapperAutomationPeer.cs
- JumpPath.cs
- JoinSymbol.cs
- OdbcError.cs
- BevelBitmapEffect.cs
- shaperfactory.cs
- TextParagraphCache.cs
- StrokeSerializer.cs
- Stream.cs