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
- TypeDependencyAttribute.cs
- SpecularMaterial.cs
- XmlElementAttribute.cs
- RequestCachingSection.cs
- ClientApiGenerator.cs
- WmpBitmapEncoder.cs
- ProgressBar.cs
- CompilerErrorCollection.cs
- InternalCache.cs
- ServiceProviders.cs
- MarginCollapsingState.cs
- HtmlInputText.cs
- TabletCollection.cs
- DatagridviewDisplayedBandsData.cs
- XmlSerializerSection.cs
- TypeToArgumentTypeConverter.cs
- ScriptResourceDefinition.cs
- RadioButtonStandardAdapter.cs
- AnimatedTypeHelpers.cs
- CommandHelpers.cs
- ThemeInfoAttribute.cs
- ResumeStoryboard.cs
- NetworkCredential.cs
- _AutoWebProxyScriptWrapper.cs
- Viewport2DVisual3D.cs
- InvalidComObjectException.cs
- SafeNativeMethods.cs
- OleDbDataReader.cs
- PlatformCulture.cs
- ReflectEventDescriptor.cs
- SmiRequestExecutor.cs
- LayoutDump.cs
- FrameDimension.cs
- UIElementParagraph.cs
- ProtocolsConfigurationHandler.cs
- DependencyProperty.cs
- Translator.cs
- AddInProcess.cs
- TimeIntervalCollection.cs
- Stack.cs
- VectorCollectionValueSerializer.cs
- DataSetUtil.cs
- TextRangeEditTables.cs
- SchemaRegistration.cs
- TimeStampChecker.cs
- ConstraintStruct.cs
- HasActivatableWorkflowEvent.cs
- HMACMD5.cs
- ToolStripContainerActionList.cs
- ExtractorMetadata.cs
- ExtentKey.cs
- PhysicalOps.cs
- DragEvent.cs
- JsonReaderDelegator.cs
- DataGridViewAutoSizeModeEventArgs.cs
- VisualState.cs
- X509Certificate2.cs
- Win32PrintDialog.cs
- RadioButton.cs
- PerspectiveCamera.cs
- GiveFeedbackEventArgs.cs
- _NegoStream.cs
- ScriptResourceInfo.cs
- ConfigurationStrings.cs
- RemotingException.cs
- AutoGeneratedFieldProperties.cs
- Zone.cs
- TabControl.cs
- DocumentXmlWriter.cs
- IntegerCollectionEditor.cs
- RC2CryptoServiceProvider.cs
- DiagnosticsConfiguration.cs
- assertwrapper.cs
- ComponentChangedEvent.cs
- SoapSchemaImporter.cs
- VerificationAttribute.cs
- DataGridViewAutoSizeModeEventArgs.cs
- _HelperAsyncResults.cs
- DesignerActionPanel.cs
- WorkflowTransactionOptions.cs
- SqlCaseSimplifier.cs
- CookieProtection.cs
- TabItem.cs
- SharedConnectionWorkflowTransactionService.cs
- ImmComposition.cs
- IconConverter.cs
- SHA256.cs
- DocumentGridPage.cs
- FrameworkContentElement.cs
- PrintingPermission.cs
- ExpressionTable.cs
- XamlPointCollectionSerializer.cs
- XslVisitor.cs
- CompilationRelaxations.cs
- DefaultValueTypeConverter.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- DeferredSelectedIndexReference.cs
- StreamReader.cs
- ViewStateModeByIdAttribute.cs
- PageParser.cs