Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //Gets a value indicating whether the current attribute is the default. ///// 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
- EllipseGeometry.cs
- EventMappingSettingsCollection.cs
- EdgeModeValidation.cs
- ListItemParagraph.cs
- SqlTriggerContext.cs
- LinkConverter.cs
- SQLBytes.cs
- FileSystemEventArgs.cs
- AssociationTypeEmitter.cs
- SQLGuidStorage.cs
- columnmapfactory.cs
- TPLETWProvider.cs
- NotifyIcon.cs
- FilteredAttributeCollection.cs
- SafeNativeMethods.cs
- COAUTHIDENTITY.cs
- HandlerMappingMemo.cs
- TableParagraph.cs
- CompiledQueryCacheKey.cs
- SingleAnimationBase.cs
- Geometry3D.cs
- PageParserFilter.cs
- LocalizationComments.cs
- MetadataImporter.cs
- WindowsPrincipal.cs
- StylusPointPropertyUnit.cs
- ListBoxAutomationPeer.cs
- ScopeCollection.cs
- MarkedHighlightComponent.cs
- BuildProvider.cs
- DataGridViewCheckBoxCell.cs
- ImageListImageEditor.cs
- MachineKeySection.cs
- WebPartMenuStyle.cs
- cookie.cs
- ToolStripGripRenderEventArgs.cs
- Single.cs
- AttachedPropertyMethodSelector.cs
- BamlVersionHeader.cs
- CngAlgorithmGroup.cs
- RequestBringIntoViewEventArgs.cs
- ConnectionPoint.cs
- StrokeNodeOperations2.cs
- ActivationServices.cs
- RestHandlerFactory.cs
- GlyphRunDrawing.cs
- TimelineGroup.cs
- ToolBarButtonClickEvent.cs
- IdentityManager.cs
- FilterElement.cs
- Transform3D.cs
- PropertyReference.cs
- Margins.cs
- Label.cs
- FileSystemInfo.cs
- BindingWorker.cs
- HttpFileCollectionBase.cs
- GeometryGroup.cs
- Interlocked.cs
- TemplateXamlTreeBuilder.cs
- ComponentCodeDomSerializer.cs
- DbModificationClause.cs
- ShaderEffect.cs
- altserialization.cs
- DataRecordObjectView.cs
- FixedSOMSemanticBox.cs
- CodeRegionDirective.cs
- XmlDocumentSchema.cs
- XamlToRtfWriter.cs
- WebPartZone.cs
- ClearTypeHintValidation.cs
- CommandValueSerializer.cs
- VirtualDirectoryMappingCollection.cs
- CustomWebEventKey.cs
- RootBrowserWindowAutomationPeer.cs
- DataGridHeaderBorder.cs
- GeneralTransform3DTo2DTo3D.cs
- HttpListenerRequest.cs
- Symbol.cs
- UIElementPropertyUndoUnit.cs
- PropertyGridEditorPart.cs
- WindowsListView.cs
- AdapterDictionary.cs
- ColorEditor.cs
- RowTypePropertyElement.cs
- SimpleFileLog.cs
- Int32.cs
- Buffer.cs
- DictionaryContent.cs
- KeyNotFoundException.cs
- ExceptionUtil.cs
- Win32KeyboardDevice.cs
- AuthenticationSection.cs
- UrlMappingsModule.cs
- EncodingInfo.cs
- ResumeStoryboard.cs
- Avt.cs
- CodeMethodReturnStatement.cs
- UndoManager.cs
- PresentationTraceSources.cs