Code:
/ DotNET / DotNET / 8.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
- CorePropertiesFilter.cs
- Paragraph.cs
- AppModelKnownContentFactory.cs
- DataGridViewSelectedRowCollection.cs
- BoundsDrawingContextWalker.cs
- ImportContext.cs
- RecognizedAudio.cs
- HandleCollector.cs
- TypeExtension.cs
- LookupBindingPropertiesAttribute.cs
- coordinator.cs
- NodeFunctions.cs
- WmpBitmapDecoder.cs
- AssemblyHash.cs
- AddInStore.cs
- IDQuery.cs
- MaskDescriptor.cs
- TablePatternIdentifiers.cs
- BamlBinaryWriter.cs
- WebBrowser.cs
- ZipIOExtraField.cs
- TextBoxLine.cs
- PackagePartCollection.cs
- TextEditorMouse.cs
- IResourceProvider.cs
- UTF32Encoding.cs
- AliasGenerator.cs
- Ops.cs
- RequestStatusBarUpdateEventArgs.cs
- DataGridRowHeader.cs
- comcontractssection.cs
- HTTPRemotingHandler.cs
- ItemMap.cs
- MoveSizeWinEventHandler.cs
- TableCell.cs
- DoubleCollection.cs
- VectorCollectionConverter.cs
- XmlTextAttribute.cs
- BinHexDecoder.cs
- DataObjectSettingDataEventArgs.cs
- CompatibleIComparer.cs
- CFStream.cs
- ConnectionPoint.cs
- PathGeometry.cs
- StorageInfo.cs
- SSmlParser.cs
- LoginCancelEventArgs.cs
- JulianCalendar.cs
- DataReceivedEventArgs.cs
- ButtonColumn.cs
- UdpRetransmissionSettings.cs
- UIElementParaClient.cs
- Odbc32.cs
- LineUtil.cs
- CapabilitiesRule.cs
- IpcManager.cs
- NonValidatingSecurityTokenAuthenticator.cs
- SqlProfileProvider.cs
- WebPartTransformerCollection.cs
- IntranetCredentialPolicy.cs
- ContentElement.cs
- Soap12ServerProtocol.cs
- DesignerInterfaces.cs
- CharacterBuffer.cs
- Activator.cs
- CacheAxisQuery.cs
- PersistenceIOParticipant.cs
- COAUTHIDENTITY.cs
- HtmlLinkAdapter.cs
- DbProviderSpecificTypePropertyAttribute.cs
- Rectangle.cs
- AssemblyResourceLoader.cs
- HttpDebugHandler.cs
- SQLInt16Storage.cs
- ResourceReferenceExpressionConverter.cs
- ShellProvider.cs
- NameValueFileSectionHandler.cs
- CalendarDataBindingHandler.cs
- AsyncOperation.cs
- TreeViewCancelEvent.cs
- Adorner.cs
- SqlWriter.cs
- AnnotationDocumentPaginator.cs
- PageVisual.cs
- SharedPersonalizationStateInfo.cs
- DrawingServices.cs
- RadialGradientBrush.cs
- HMACSHA256.cs
- COMException.cs
- Not.cs
- ApplicationManager.cs
- InkCanvasAutomationPeer.cs
- HttpContext.cs
- OutputScopeManager.cs
- TextReturnReader.cs
- CheckBoxStandardAdapter.cs
- AutomationElementCollection.cs
- Variable.cs
- RegexGroupCollection.cs
- DataSetMappper.cs