Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / ComponentModel / Design / RefreshPropertiesAttribute.cs / 1 / RefreshPropertiesAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.All)] public sealed class RefreshPropertiesAttribute : Attribute { ///Specifies how a designer refreshes when the property value is changed. ////// public static readonly RefreshPropertiesAttribute All = new RefreshPropertiesAttribute(RefreshProperties.All); ////// Indicates all properties should /// be refreshed if the property value is changed. This field is /// read-only. /// ////// public static readonly RefreshPropertiesAttribute Repaint = new RefreshPropertiesAttribute(RefreshProperties.Repaint); ////// Indicates all properties should /// be invalidated and repainted if the /// property value is changed. This field is read-only. /// ////// public static readonly RefreshPropertiesAttribute Default = new RefreshPropertiesAttribute(RefreshProperties.None); private RefreshProperties refresh; ////// Indicates that by default /// no /// properties should be refreshed if the property value /// is changed. This field is read-only. /// ////// ///public RefreshPropertiesAttribute(RefreshProperties refresh) { this.refresh = refresh; } /// /// public RefreshProperties RefreshProperties { get { return refresh; } } ////// Gets or sets /// the refresh properties for the member. /// ////// public override bool Equals(object value) { if (value is RefreshPropertiesAttribute) { return(((RefreshPropertiesAttribute)value).RefreshProperties == refresh); } return false; } ////// Overrides object's Equals method. /// ////// public override int GetHashCode() { return base.GetHashCode(); } ////// Returns the hashcode for this object. /// ////// public override bool IsDefaultAttribute() { return this.Equals(Default); } } }Gets a value indicating whether the current attribute is the default. ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- VectorAnimationBase.cs
- Matrix.cs
- XmlSchemaSimpleTypeList.cs
- SqlDataSourceConfigureSelectPanel.cs
- GB18030Encoding.cs
- XPathNavigatorKeyComparer.cs
- EnumUnknown.cs
- GroupStyle.cs
- WebResponse.cs
- Point3DAnimationBase.cs
- SelectorAutomationPeer.cs
- Range.cs
- PackageRelationship.cs
- SqlProviderServices.cs
- DesignerActionItem.cs
- SynchronizationContext.cs
- TheQuery.cs
- FileDialog.cs
- StatusBarItemAutomationPeer.cs
- ProfileInfo.cs
- GZipDecoder.cs
- Margins.cs
- TypeToStringValueConverter.cs
- ErrorInfoXmlDocument.cs
- Visual3D.cs
- SelectionProcessor.cs
- SoapProtocolReflector.cs
- WebPartHelpVerb.cs
- StylusButtonEventArgs.cs
- RegistryPermission.cs
- ViewStateModeByIdAttribute.cs
- AlgoModule.cs
- UnsafeNativeMethodsTablet.cs
- EventlogProvider.cs
- Condition.cs
- RemoteCryptoTokenProvider.cs
- ExpressionBuilderContext.cs
- CommonObjectSecurity.cs
- SchemaLookupTable.cs
- VersionPair.cs
- XamlSerializerUtil.cs
- MtomMessageEncodingBindingElement.cs
- BackEase.cs
- ObjectListCommandEventArgs.cs
- ProtocolsConfigurationEntry.cs
- RawStylusInputCustomData.cs
- TabControlEvent.cs
- TransactionsSectionGroup.cs
- ProxyWebPartManager.cs
- EncodingNLS.cs
- ApplicationFileParser.cs
- SmtpNtlmAuthenticationModule.cs
- ListControlDesigner.cs
- TableRowGroup.cs
- HwndSource.cs
- DataRowCollection.cs
- TextBoxAutomationPeer.cs
- BrowserDefinitionCollection.cs
- UnsafeNativeMethods.cs
- CommandID.cs
- PerfCounters.cs
- SafeMarshalContext.cs
- unitconverter.cs
- CodeNamespaceImport.cs
- EmissiveMaterial.cs
- ObjectListDesigner.cs
- ConfigsHelper.cs
- GenericEnumerator.cs
- ScrollChrome.cs
- assertwrapper.cs
- ExpandSegmentCollection.cs
- TransformPatternIdentifiers.cs
- PathSegmentCollection.cs
- PersonalizationStateInfo.cs
- LongPath.cs
- ExpressionsCollectionEditor.cs
- EventLogSession.cs
- DataGridItem.cs
- HtmlToClrEventProxy.cs
- XmlSchemaObjectTable.cs
- Trigger.cs
- DataException.cs
- TaskFormBase.cs
- EventProxy.cs
- DesignerCapabilities.cs
- SynchronizedInputPattern.cs
- Journaling.cs
- _AutoWebProxyScriptHelper.cs
- Timer.cs
- _SafeNetHandles.cs
- CompoundFileReference.cs
- EntityDataSourceReferenceGroup.cs
- ServiceModelActivationSectionGroup.cs
- Parallel.cs
- MouseEvent.cs
- DataGridCommandEventArgs.cs
- BaseCollection.cs
- DataGridViewToolTip.cs
- MailAddressCollection.cs
- BooleanFunctions.cs