Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / ComponentModel / Design / ComponentRenameEvent.cs / 1 / ComponentRenameEvent.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; ////// [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 ComponentRenameEventArgs : EventArgs { private object component; private string oldName; private string newName; ///Provides data for the ///event. /// public object Component { get { return component; } } ////// Gets or sets the component that is being renamed. /// ////// public virtual string OldName { get { return oldName; } } ////// Gets or /// sets the name of the component before the rename. /// ////// public virtual string NewName { get { return newName; } } ////// Gets or /// sets the current name of the component. /// ////// public ComponentRenameEventArgs(object component, string oldName, string newName) { this.oldName = oldName; this.newName = newName; this.component = component; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Initializes a new instance of the ////// class. /// // 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; ////// [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 ComponentRenameEventArgs : EventArgs { private object component; private string oldName; private string newName; ///Provides data for the ///event. /// public object Component { get { return component; } } ////// Gets or sets the component that is being renamed. /// ////// public virtual string OldName { get { return oldName; } } ////// Gets or /// sets the name of the component before the rename. /// ////// public virtual string NewName { get { return newName; } } ////// Gets or /// sets the current name of the component. /// ////// public ComponentRenameEventArgs(object component, string oldName, string newName) { this.oldName = oldName; this.newName = newName; this.component = component; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Initializes a new instance of the ////// class. ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DoubleAnimation.cs
- AbstractSvcMapFileLoader.cs
- DocumentPage.cs
- ValidatedMobileControlConverter.cs
- XamlToRtfParser.cs
- Int64.cs
- RubberbandSelector.cs
- _UriTypeConverter.cs
- TerminatorSinks.cs
- HttpPostClientProtocol.cs
- ColorTranslator.cs
- CharacterHit.cs
- RoutedPropertyChangedEventArgs.cs
- DesignTimeTemplateParser.cs
- UserPreferenceChangingEventArgs.cs
- TextTreeInsertUndoUnit.cs
- DeleteIndexBinder.cs
- ShapeTypeface.cs
- PropertyMappingExceptionEventArgs.cs
- ManipulationLogic.cs
- DataPager.cs
- XPathNodePointer.cs
- Misc.cs
- ValidationError.cs
- ListViewGroup.cs
- WizardSideBarListControlItemEventArgs.cs
- InternalCache.cs
- Timer.cs
- Control.cs
- SignatureResourceHelper.cs
- CounterSampleCalculator.cs
- XmlSchemaImport.cs
- PointAnimationUsingPath.cs
- PermissionSetTriple.cs
- SuppressMessageAttribute.cs
- StaticFileHandler.cs
- BinaryFormatterWriter.cs
- Property.cs
- TraceFilter.cs
- CombinedGeometry.cs
- MaskedTextBoxDesigner.cs
- BrowserDefinitionCollection.cs
- TripleDES.cs
- Converter.cs
- IsolatedStorageException.cs
- TagMapInfo.cs
- GuidTagList.cs
- SqlReorderer.cs
- DataServiceStreamResponse.cs
- DPCustomTypeDescriptor.cs
- SafeRegistryHandle.cs
- InteropAutomationProvider.cs
- SerializerDescriptor.cs
- SamlSecurityTokenAuthenticator.cs
- Convert.cs
- CodeAttributeDeclarationCollection.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- FontWeights.cs
- XPathAncestorIterator.cs
- SqlUdtInfo.cs
- OpenFileDialog.cs
- PermissionRequestEvidence.cs
- ThousandthOfEmRealPoints.cs
- IdentitySection.cs
- StrokeFIndices.cs
- RuntimeWrappedException.cs
- CodeLabeledStatement.cs
- SplayTreeNode.cs
- CategoryNameCollection.cs
- ImpersonationContext.cs
- Logging.cs
- PackWebResponse.cs
- CompositeControl.cs
- TagNameToTypeMapper.cs
- AutomationIdentifierGuids.cs
- ConfigurationLocation.cs
- _OverlappedAsyncResult.cs
- PreviewPageInfo.cs
- ContentOperations.cs
- TransformerTypeCollection.cs
- ClonableStack.cs
- XmlSiteMapProvider.cs
- UriScheme.cs
- EntityWrapperFactory.cs
- EventLogEntry.cs
- GPRECT.cs
- GetChildSubtree.cs
- WebBrowserUriTypeConverter.cs
- Identifier.cs
- VisualBrush.cs
- DataColumnMappingCollection.cs
- InstancePersistenceCommandException.cs
- UInt64Storage.cs
- Binding.cs
- PageTheme.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- RelationshipEndMember.cs
- ScriptResourceAttribute.cs
- ExternalException.cs
- BidirectionalDictionary.cs