Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / Design / RefreshPropertiesAttribute.cs / 1305376 / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.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
- DesignSurfaceServiceContainer.cs
- ByteStorage.cs
- cache.cs
- EncodingInfo.cs
- RewritingProcessor.cs
- ExpressionContext.cs
- HwndMouseInputProvider.cs
- Geometry3D.cs
- SessionStateContainer.cs
- BaseCollection.cs
- ObjectTag.cs
- UndoUnit.cs
- GestureRecognizer.cs
- StaticTextPointer.cs
- ErrorFormatter.cs
- MailWriter.cs
- SQLByteStorage.cs
- KeyInterop.cs
- MapPathBasedVirtualPathProvider.cs
- SmtpCommands.cs
- TableLayoutPanel.cs
- TemplateControlBuildProvider.cs
- EmptyStringExpandableObjectConverter.cs
- ProcessModuleDesigner.cs
- AsyncPostBackErrorEventArgs.cs
- SegmentInfo.cs
- TimeSpanValidator.cs
- FontFamilyValueSerializer.cs
- JavaScriptSerializer.cs
- TableLayoutPanel.cs
- Comparer.cs
- DefaultBindingPropertyAttribute.cs
- NetworkAddressChange.cs
- HttpCapabilitiesEvaluator.cs
- AttachedPropertyBrowsableAttribute.cs
- TextBreakpoint.cs
- StartFileNameEditor.cs
- designeractionbehavior.cs
- PageRequestManager.cs
- TextBox.cs
- SqlServices.cs
- SimpleMailWebEventProvider.cs
- CloudCollection.cs
- BindingCompleteEventArgs.cs
- TaiwanCalendar.cs
- ResourceIDHelper.cs
- SqlParameterCollection.cs
- SqlRowUpdatingEvent.cs
- DbDataRecord.cs
- SafeNativeMemoryHandle.cs
- WebConfigurationManager.cs
- DataViewListener.cs
- ItemList.cs
- MenuRenderer.cs
- SafeNativeMethods.cs
- RepeatInfo.cs
- SafePointer.cs
- HatchBrush.cs
- DetailsView.cs
- ParamArrayAttribute.cs
- TraceContext.cs
- RadioButton.cs
- Bidi.cs
- UtilityExtension.cs
- TraceListeners.cs
- EventOpcode.cs
- Document.cs
- SchemaImporterExtensionElementCollection.cs
- DataGridCommandEventArgs.cs
- StylusPointPropertyInfoDefaults.cs
- EndpointInfoCollection.cs
- ValueUnavailableException.cs
- PolicyChain.cs
- FontSource.cs
- UIElement3D.cs
- httpapplicationstate.cs
- XmlDeclaration.cs
- DrawingCollection.cs
- PartialTrustValidationBehavior.cs
- ContainsRowNumberChecker.cs
- MediaElement.cs
- MenuScrollingVisibilityConverter.cs
- SwitchAttribute.cs
- RequestNavigateEventArgs.cs
- SafeBitVector32.cs
- CollectionView.cs
- WebPartRestoreVerb.cs
- ArgumentOutOfRangeException.cs
- XmlBuffer.cs
- EncoderParameter.cs
- PrintPreviewDialog.cs
- PeerFlooder.cs
- MemoryPressure.cs
- UshortList2.cs
- LineMetrics.cs
- basecomparevalidator.cs
- MailDefinition.cs
- PropertyGridEditorPart.cs
- XmlSerializerImportOptions.cs
- TabControl.cs