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
- Rectangle.cs
- XmlSchemaObjectTable.cs
- SourceItem.cs
- NetNamedPipeSecurity.cs
- SignatureHelper.cs
- WmlCalendarAdapter.cs
- MDIControlStrip.cs
- TypographyProperties.cs
- ObjectSet.cs
- XdrBuilder.cs
- SchemaImporterExtension.cs
- OperandQuery.cs
- DateTimeFormat.cs
- HttpValueCollection.cs
- InboundActivityHelper.cs
- ToolStripTextBox.cs
- COSERVERINFO.cs
- TextSegment.cs
- LiteralTextContainerControlBuilder.cs
- EventMap.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- ImageDrawing.cs
- NodeLabelEditEvent.cs
- ContainerControl.cs
- Label.cs
- WindowsAltTab.cs
- OracleParameterCollection.cs
- BridgeDataRecord.cs
- SystemIPGlobalProperties.cs
- _AutoWebProxyScriptWrapper.cs
- TcpHostedTransportConfiguration.cs
- XsltQilFactory.cs
- SafeRegistryKey.cs
- BaseUriHelper.cs
- WebBrowserNavigatingEventHandler.cs
- ViewCellSlot.cs
- BamlResourceDeserializer.cs
- ImageInfo.cs
- SqlNode.cs
- TreeView.cs
- EntityStoreSchemaFilterEntry.cs
- XmlDataSourceView.cs
- SelectedGridItemChangedEvent.cs
- DesignerCommandAdapter.cs
- Binding.cs
- DashStyles.cs
- TextRunCache.cs
- DataColumnChangeEvent.cs
- PersonalizableAttribute.cs
- SqlMethods.cs
- EntityParameter.cs
- CellRelation.cs
- NameTable.cs
- WebReference.cs
- MaskedTextBox.cs
- BitmapPalette.cs
- GeneralTransform2DTo3DTo2D.cs
- GifBitmapDecoder.cs
- WorkflowRequestContext.cs
- CapabilitiesRule.cs
- FullTrustAssemblyCollection.cs
- SqlDependencyListener.cs
- FrameworkElement.cs
- ModelMemberCollection.cs
- Binding.cs
- TraceLog.cs
- IsolationInterop.cs
- NumericPagerField.cs
- FillBehavior.cs
- Clipboard.cs
- NameSpaceExtractor.cs
- HijriCalendar.cs
- Error.cs
- DataGridColumnHeaderCollection.cs
- InputQueueChannelAcceptor.cs
- PageFunction.cs
- DateTimeSerializationSection.cs
- ProxyFragment.cs
- BaseTemplateParser.cs
- ChoiceConverter.cs
- SapiRecoContext.cs
- QueryCacheEntry.cs
- DateTimeFormat.cs
- ApplyImportsAction.cs
- DbMetaDataCollectionNames.cs
- NamespaceDecl.cs
- SafeNativeMethods.cs
- DocumentApplication.cs
- AVElementHelper.cs
- XmlCountingReader.cs
- SecurityKeyType.cs
- ToolStripItemImageRenderEventArgs.cs
- ParallelDesigner.cs
- ProfilePropertySettingsCollection.cs
- ClientSettingsSection.cs
- TrackingStringDictionary.cs
- Shape.cs
- ChannelSinkStacks.cs
- SimpleTextLine.cs
- X509ThumbprintKeyIdentifierClause.cs