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
- HandledMouseEvent.cs
- BamlMapTable.cs
- TabItemAutomationPeer.cs
- SurrogateDataContract.cs
- CodeObject.cs
- SID.cs
- Sentence.cs
- EntityModelSchemaGenerator.cs
- MasterPageParser.cs
- TypeBuilder.cs
- ScrollViewerAutomationPeer.cs
- Column.cs
- LabelDesigner.cs
- DataObjectPastingEventArgs.cs
- RtType.cs
- QueryTreeBuilder.cs
- FontWeights.cs
- MappingItemCollection.cs
- BitmapFrameDecode.cs
- SqlProviderServices.cs
- ContextMenu.cs
- RevocationPoint.cs
- SpanIndex.cs
- NativeMethods.cs
- configsystem.cs
- OperationCanceledException.cs
- WebServiceEnumData.cs
- diagnosticsswitches.cs
- RedistVersionInfo.cs
- nulltextnavigator.cs
- SynchronizedDispatch.cs
- WebPartDesigner.cs
- IOException.cs
- TypeToken.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- ComplexLine.cs
- Pool.cs
- InfiniteTimeSpanConverter.cs
- PositiveTimeSpanValidatorAttribute.cs
- SiteMapNode.cs
- EdmSchemaError.cs
- EdmItemCollection.cs
- CommandPlan.cs
- ScriptingAuthenticationServiceSection.cs
- FixedFindEngine.cs
- GroupDescription.cs
- TextTabProperties.cs
- InvokeMethodActivity.cs
- HtmlFormParameterReader.cs
- CustomValidator.cs
- Parameter.cs
- XAMLParseException.cs
- HttpProfileGroupBase.cs
- BaseCodeDomTreeGenerator.cs
- GeneralTransformGroup.cs
- DesignColumn.cs
- SchemaElementDecl.cs
- TextSelection.cs
- TypeConverterHelper.cs
- HttpProcessUtility.cs
- NetworkInterface.cs
- UnsafeNativeMethods.cs
- VSWCFServiceContractGenerator.cs
- Win32.cs
- RowParagraph.cs
- CodeNamespaceImportCollection.cs
- HtmlHistory.cs
- ThreadStaticAttribute.cs
- SystemResources.cs
- CriticalHandle.cs
- MetadataExchangeClient.cs
- Queue.cs
- CallId.cs
- cookiecollection.cs
- ContainerParaClient.cs
- StatusBar.cs
- ConfigurationManagerInternalFactory.cs
- CfgParser.cs
- WorkflowQueuingService.cs
- ProtocolImporter.cs
- Nodes.cs
- ImageCreator.cs
- StringInfo.cs
- ApplicationServiceManager.cs
- SerialErrors.cs
- SynchronizedMessageSource.cs
- XmlDictionaryWriter.cs
- EventLogPermissionAttribute.cs
- TypeCollectionDesigner.xaml.cs
- SafeHandles.cs
- XomlCompiler.cs
- GrammarBuilder.cs
- MessagePropertyFilter.cs
- Evidence.cs
- FixedSOMContainer.cs
- MsmqIntegrationBinding.cs
- BufferedGraphicsManager.cs
- InstanceDescriptor.cs
- SqlParameterCollection.cs
- DeviceContext.cs