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
- TransactionManager.cs
- X509Extension.cs
- HashMembershipCondition.cs
- MenuCommandsChangedEventArgs.cs
- TitleStyle.cs
- InvokeBase.cs
- Compiler.cs
- QilChoice.cs
- DataBoundControlActionList.cs
- X509Chain.cs
- EntityUtil.cs
- StreamSecurityUpgradeAcceptorAsyncResult.cs
- RectAnimationUsingKeyFrames.cs
- CorrelationHandle.cs
- BinaryConverter.cs
- SessionStateItemCollection.cs
- sqlser.cs
- TrustLevel.cs
- AnonymousIdentificationModule.cs
- XmlSchemas.cs
- TrustSection.cs
- InkCanvasInnerCanvas.cs
- _NegoState.cs
- TemplateBindingExpressionConverter.cs
- ScrollViewer.cs
- OperationAbortedException.cs
- CommandValueSerializer.cs
- BlockUIContainer.cs
- StateChangeEvent.cs
- StackOverflowException.cs
- IRCollection.cs
- PersonalizationProvider.cs
- xmlfixedPageInfo.cs
- SmtpTransport.cs
- BindUriHelper.cs
- LiteralText.cs
- EventLogSession.cs
- VBIdentifierNameEditor.cs
- XsltArgumentList.cs
- XsltFunctions.cs
- CryptoStream.cs
- ToolStripRenderEventArgs.cs
- arc.cs
- ButtonBase.cs
- ViewKeyConstraint.cs
- FlatButtonAppearance.cs
- RotateTransform3D.cs
- input.cs
- OdbcStatementHandle.cs
- TemplateComponentConnector.cs
- TextRangeBase.cs
- PkcsUtils.cs
- RenderData.cs
- MostlySingletonList.cs
- Control.cs
- CodeDOMUtility.cs
- NativeMethods.cs
- X509ChainElement.cs
- HtmlObjectListAdapter.cs
- validationstate.cs
- StopStoryboard.cs
- SmiRecordBuffer.cs
- WebConfigurationFileMap.cs
- StylusTouchDevice.cs
- WaitHandleCannotBeOpenedException.cs
- FontConverter.cs
- OrderByQueryOptionExpression.cs
- Environment.cs
- ProtocolViolationException.cs
- PlainXmlDeserializer.cs
- BitmapEffect.cs
- SequenceDesignerAccessibleObject.cs
- TripleDES.cs
- DatagridviewDisplayedBandsData.cs
- TextDecoration.cs
- ZoomPercentageConverter.cs
- DocumentGrid.cs
- CryptoStream.cs
- UpdateException.cs
- GuidConverter.cs
- GeometryDrawing.cs
- StorageConditionPropertyMapping.cs
- BaseDataListPage.cs
- AssemblyNameProxy.cs
- Byte.cs
- HostProtectionException.cs
- EmissiveMaterial.cs
- TreePrinter.cs
- ApplicationServicesHostFactory.cs
- Transform3D.cs
- Translator.cs
- _SafeNetHandles.cs
- GridPatternIdentifiers.cs
- DBCommandBuilder.cs
- CorruptingExceptionCommon.cs
- ConfigUtil.cs
- CurrentChangingEventManager.cs
- ViewGenResults.cs
- CommandEventArgs.cs
- ExtensionCollection.cs