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
- _SslSessionsCache.cs
- PropertyEmitter.cs
- DynamicRendererThreadManager.cs
- QueryOperator.cs
- EventLogEntry.cs
- ShapeTypeface.cs
- ListViewTableCell.cs
- DBConnectionString.cs
- XmlCharCheckingReader.cs
- TablePattern.cs
- TabControlEvent.cs
- MobileSysDescriptionAttribute.cs
- BaseTemplateBuildProvider.cs
- CalendarDesigner.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- RawKeyboardInputReport.cs
- WinEventTracker.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- LicenseContext.cs
- processwaithandle.cs
- CodeGeneratorOptions.cs
- SqlMetaData.cs
- SizeIndependentAnimationStorage.cs
- XmlConvert.cs
- SettingsBindableAttribute.cs
- WebPartCloseVerb.cs
- Path.cs
- CodeNamespaceImportCollection.cs
- DocumentApplication.cs
- TraceHandler.cs
- ViewPort3D.cs
- LocatorBase.cs
- CodeGenerator.cs
- BindUriHelper.cs
- UnmanagedHandle.cs
- ObjectFullSpanRewriter.cs
- DataQuery.cs
- FormatterServices.cs
- Paragraph.cs
- AsyncCompletedEventArgs.cs
- OperationValidationEventArgs.cs
- WebPartHelpVerb.cs
- Transform3D.cs
- QueryExecutionOption.cs
- ScrollableControl.cs
- DllNotFoundException.cs
- StringAnimationBase.cs
- ToolStripItemCollection.cs
- HtmlTableRowCollection.cs
- RoleManagerModule.cs
- XPathAncestorQuery.cs
- CacheModeValueSerializer.cs
- SerializationInfo.cs
- RIPEMD160.cs
- activationcontext.cs
- UpdateTranslator.cs
- XmlILConstructAnalyzer.cs
- RoutedEventValueSerializer.cs
- FixedPosition.cs
- DoubleLinkListEnumerator.cs
- OdbcDataReader.cs
- CompilerTypeWithParams.cs
- nulltextnavigator.cs
- DesignTimeTemplateParser.cs
- AutoResizedEvent.cs
- ParenthesizePropertyNameAttribute.cs
- SqlPersonalizationProvider.cs
- QueryResult.cs
- ValidationRule.cs
- DataObjectFieldAttribute.cs
- DbConnectionClosed.cs
- VariantWrapper.cs
- ViewRendering.cs
- GradientBrush.cs
- BoolExpressionVisitors.cs
- ServiceReference.cs
- PolyBezierSegment.cs
- DefaultValueAttribute.cs
- diagnosticsswitches.cs
- JpegBitmapEncoder.cs
- EditingMode.cs
- TableCell.cs
- PersistenceTypeAttribute.cs
- ServiceManager.cs
- TableCellAutomationPeer.cs
- SpellerHighlightLayer.cs
- RNGCryptoServiceProvider.cs
- DbProviderFactoriesConfigurationHandler.cs
- BuildResult.cs
- Asn1IntegerConverter.cs
- ActiveXMessageFormatter.cs
- ProfilePropertyNameValidator.cs
- WindowsScrollBarBits.cs
- GrowingArray.cs
- RuntimeHandles.cs
- CodeAccessSecurityEngine.cs
- CollectionConverter.cs
- PresentationTraceSources.cs
- HandleCollector.cs
- OleDbWrapper.cs