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;
///
/// Specifies how a designer refreshes when the property value is changed.
///
[AttributeUsage(AttributeTargets.All)]
public sealed class RefreshPropertiesAttribute : Attribute {
///
///
/// Indicates all properties should
/// be refreshed if the property value is changed. This field is
/// read-only.
///
///
public static readonly RefreshPropertiesAttribute All = new RefreshPropertiesAttribute(RefreshProperties.All);
///
///
/// Indicates all properties should
/// be invalidated and repainted if the
/// property value is changed. This field is read-only.
///
///
public static readonly RefreshPropertiesAttribute Repaint = new RefreshPropertiesAttribute(RefreshProperties.Repaint);
///
///
/// Indicates that by default
/// no
/// properties should be refreshed if the property value
/// is changed. This field is read-only.
///
///
public static readonly RefreshPropertiesAttribute Default = new RefreshPropertiesAttribute(RefreshProperties.None);
private RefreshProperties refresh;
///
///
///
public RefreshPropertiesAttribute(RefreshProperties refresh) {
this.refresh = refresh;
}
///
///
/// Gets or sets
/// the refresh properties for the member.
///
///
public RefreshProperties RefreshProperties {
get {
return refresh;
}
}
///
///
/// Overrides object's Equals method.
///
///
public override bool Equals(object value) {
if (value is RefreshPropertiesAttribute) {
return(((RefreshPropertiesAttribute)value).RefreshProperties == refresh);
}
return false;
}
///
///
/// Returns the hashcode for this object.
///
///
public override int GetHashCode() {
return base.GetHashCode();
}
///
/// Gets a value indicating whether the current attribute is the default.
///
public override bool IsDefaultAttribute() {
return this.Equals(Default);
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- GradientStopCollection.cs
- DocumentViewerBase.cs
- SynchronizedRandom.cs
- PointCollection.cs
- DataGridViewRowEventArgs.cs
- GeneralTransform3DTo2DTo3D.cs
- UserValidatedEventArgs.cs
- MarkupObject.cs
- SchemaComplexType.cs
- BamlRecords.cs
- WindowsRichEdit.cs
- ParameterModifier.cs
- TypeLibConverter.cs
- FlowDocumentView.cs
- SafeArrayTypeMismatchException.cs
- ListBoxItemAutomationPeer.cs
- FileChangesMonitor.cs
- ParentUndoUnit.cs
- Monitor.cs
- AutomationEvent.cs
- DetailsViewCommandEventArgs.cs
- WebPartConnectionsCloseVerb.cs
- OperatingSystem.cs
- FileDetails.cs
- BamlBinaryReader.cs
- PageBuildProvider.cs
- Permission.cs
- updateconfighost.cs
- XmlException.cs
- ListBindingHelper.cs
- OleDbDataReader.cs
- HttpProtocolImporter.cs
- RegexInterpreter.cs
- AbstractExpressions.cs
- HttpModuleCollection.cs
- RelatedPropertyManager.cs
- PlatformCulture.cs
- ContentPlaceHolder.cs
- WorkflowApplication.cs
- GorillaCodec.cs
- GridItemPatternIdentifiers.cs
- PersistChildrenAttribute.cs
- EditingScopeUndoUnit.cs
- XmlChoiceIdentifierAttribute.cs
- SemaphoreFullException.cs
- DictionaryContent.cs
- SettingsSection.cs
- VolatileResourceManager.cs
- TableLayoutPanel.cs
- TraceHwndHost.cs
- CodePageUtils.cs
- BlurEffect.cs
- SoapSchemaMember.cs
- IdentityModelDictionary.cs
- TabletDevice.cs
- FormatConvertedBitmap.cs
- SchemaImporterExtension.cs
- UnsafeNativeMethods.cs
- localization.cs
- XmlSchemaComplexContentExtension.cs
- ContentDisposition.cs
- TextTreeObjectNode.cs
- ElementNotAvailableException.cs
- PathSegment.cs
- COM2EnumConverter.cs
- HttpContext.cs
- dsa.cs
- DiagnosticTrace.cs
- InputLanguageCollection.cs
- ModuleBuilderData.cs
- RegexBoyerMoore.cs
- bidPrivateBase.cs
- EmptyStringExpandableObjectConverter.cs
- AnimationClockResource.cs
- DoubleAnimationClockResource.cs
- WebHttpSecurity.cs
- SystemIcmpV6Statistics.cs
- DataGrid.cs
- RSAPKCS1SignatureFormatter.cs
- SimpleExpression.cs
- SeverityFilter.cs
- GridViewSortEventArgs.cs
- XmlCharType.cs
- RadioButtonDesigner.cs
- ScriptServiceAttribute.cs
- FormatConvertedBitmap.cs
- ReferenceEqualityComparer.cs
- ipaddressinformationcollection.cs
- ClickablePoint.cs
- EventProperty.cs
- NavigatorInput.cs
- ErrorProvider.cs
- WebBrowser.cs
- XmlSchemaExporter.cs
- WebPartUserCapability.cs
- SafeNativeMethods.cs
- EventProvider.cs
- Timer.cs
- ObjectAnimationUsingKeyFrames.cs
- DesignerDataView.cs