Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //Gets a value indicating whether the current attribute is the default. ///// 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.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
- DSASignatureFormatter.cs
- FacetEnabledSchemaElement.cs
- SystemIcons.cs
- ProtectedConfiguration.cs
- SecurityUtils.cs
- SubstitutionResponseElement.cs
- CodeMemberProperty.cs
- CheckBoxStandardAdapter.cs
- EventLogTraceListener.cs
- SystemDropShadowChrome.cs
- GroupBox.cs
- PtsContext.cs
- MediaSystem.cs
- DataGridViewElement.cs
- XmlDataProvider.cs
- CodeMemberMethod.cs
- PopupControlService.cs
- ColorMatrix.cs
- PageParser.cs
- ParseChildrenAsPropertiesAttribute.cs
- TableParaClient.cs
- ModelTypeConverter.cs
- EditCommandColumn.cs
- PersonalizableTypeEntry.cs
- GridViewAutoFormat.cs
- BitmapMetadataBlob.cs
- HttpProxyCredentialType.cs
- RTLAwareMessageBox.cs
- HtmlTableRow.cs
- ContextQuery.cs
- Atom10FormatterFactory.cs
- InternalDuplexChannelFactory.cs
- PackageRelationship.cs
- SplitterCancelEvent.cs
- CodeExpressionCollection.cs
- QueuePathDialog.cs
- FixedSOMPageConstructor.cs
- SID.cs
- DynamicObject.cs
- InvalidateEvent.cs
- BamlRecords.cs
- SettingsPropertyValueCollection.cs
- RegexTree.cs
- VariableQuery.cs
- DataMember.cs
- VisualTreeUtils.cs
- SafeCryptoHandles.cs
- Transform3D.cs
- WebControlsSection.cs
- ClassValidator.cs
- BooleanProjectedSlot.cs
- ColumnResizeAdorner.cs
- DateTimeUtil.cs
- SafeHandle.cs
- ReadContentAsBinaryHelper.cs
- ExpressionUtilities.cs
- SslStream.cs
- basenumberconverter.cs
- InputDevice.cs
- DesignerActionUIService.cs
- HandlerBase.cs
- TerminatorSinks.cs
- DocumentSchemaValidator.cs
- FormView.cs
- DataContractSerializer.cs
- DataGridViewComboBoxColumnDesigner.cs
- FileClassifier.cs
- StructuredType.cs
- StrokeRenderer.cs
- PropertyRecord.cs
- ClientSponsor.cs
- SchemaImporterExtensionElement.cs
- StringResourceManager.cs
- SerialErrors.cs
- SettingsSavedEventArgs.cs
- ServiceObjectContainer.cs
- QilLoop.cs
- XPathParser.cs
- RowUpdatedEventArgs.cs
- ConnectionPoint.cs
- RegexCapture.cs
- UnicastIPAddressInformationCollection.cs
- OutputCacheSection.cs
- TraceEventCache.cs
- DataServiceEntityAttribute.cs
- BigInt.cs
- MetaForeignKeyColumn.cs
- XmlArrayItemAttributes.cs
- XhtmlBasicFormAdapter.cs
- BufferedWebEventProvider.cs
- Marshal.cs
- ImmComposition.cs
- Int32RectValueSerializer.cs
- ReliabilityContractAttribute.cs
- IndentedWriter.cs
- NonVisualControlAttribute.cs
- Path.cs
- ContourSegment.cs
- GeneratedView.cs
- LookupBindingPropertiesAttribute.cs