Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / DockingAttribute.cs / 1305376 / DockingAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { ////// /// [AttributeUsage(AttributeTargets.Class)] public sealed class DockingAttribute : Attribute { private DockingBehavior dockingBehavior; ////// Specifies how a control should be docked by default when added through the designer. /// ////// /// public DockingAttribute() { this.dockingBehavior = DockingBehavior.Never; } ////// Default constructor. /// ////// /// public DockingAttribute(DockingBehavior dockingBehavior) { this.dockingBehavior = dockingBehavior; } ////// Constructor. /// ////// /// public static readonly DockingAttribute Default = new DockingAttribute(); ////// Specifies the default value for the ///. /// This field is read-only. /// /// /// public DockingBehavior DockingBehavior { get { return dockingBehavior; } } ////// DockingBehavior property. /// ////// /// /// public override bool Equals(object obj) { if (obj == this) { return true; } DockingAttribute other = obj as DockingAttribute; return (other != null) && other.DockingBehavior == this.dockingBehavior; } ////// /// public override int GetHashCode() { return dockingBehavior.GetHashCode(); } ///[To be supplied.] ////// /// /// public override bool IsDefaultAttribute() { return (this.Equals(Default)); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { ////// /// [AttributeUsage(AttributeTargets.Class)] public sealed class DockingAttribute : Attribute { private DockingBehavior dockingBehavior; ////// Specifies how a control should be docked by default when added through the designer. /// ////// /// public DockingAttribute() { this.dockingBehavior = DockingBehavior.Never; } ////// Default constructor. /// ////// /// public DockingAttribute(DockingBehavior dockingBehavior) { this.dockingBehavior = dockingBehavior; } ////// Constructor. /// ////// /// public static readonly DockingAttribute Default = new DockingAttribute(); ////// Specifies the default value for the ///. /// This field is read-only. /// /// /// public DockingBehavior DockingBehavior { get { return dockingBehavior; } } ////// DockingBehavior property. /// ////// /// /// public override bool Equals(object obj) { if (obj == this) { return true; } DockingAttribute other = obj as DockingAttribute; return (other != null) && other.DockingBehavior == this.dockingBehavior; } ////// /// public override int GetHashCode() { return dockingBehavior.GetHashCode(); } ///[To be supplied.] ////// /// /// 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
- StrokeCollectionConverter.cs
- DataGridRow.cs
- CounterSampleCalculator.cs
- InstanceBehavior.cs
- CrossSiteScriptingValidation.cs
- ProfilePropertyNameValidator.cs
- MetadataImporterQuotas.cs
- versioninfo.cs
- Message.cs
- DirectionalLight.cs
- ServicePoint.cs
- GZipStream.cs
- SessionStateModule.cs
- DataGridViewCellEventArgs.cs
- AsyncPostBackErrorEventArgs.cs
- NetworkInterface.cs
- WebPartConnectionsDisconnectVerb.cs
- SourceLineInfo.cs
- DrawingAttributesDefaultValueFactory.cs
- InertiaTranslationBehavior.cs
- Helpers.cs
- XmlLinkedNode.cs
- GcSettings.cs
- ClientProxyGenerator.cs
- RemoteCryptoSignHashRequest.cs
- PasswordRecovery.cs
- SqlInfoMessageEvent.cs
- BitmapCodecInfoInternal.cs
- FormatterConverter.cs
- UnsafeNativeMethods.cs
- _LocalDataStoreMgr.cs
- ErrorTableItemStyle.cs
- XsdDuration.cs
- EncryptedPackageFilter.cs
- DynamicContractTypeBuilder.cs
- LateBoundBitmapDecoder.cs
- InputBindingCollection.cs
- GenericUriParser.cs
- HttpRuntime.cs
- HttpPostedFile.cs
- ExtendedProtectionPolicy.cs
- COMException.cs
- DataDocumentXPathNavigator.cs
- CustomAttributeBuilder.cs
- IntegerValidator.cs
- DrawingAttributesDefaultValueFactory.cs
- IPAddress.cs
- ControlCollection.cs
- DataGridState.cs
- GraphicsPathIterator.cs
- ProfileGroupSettingsCollection.cs
- PropertyIdentifier.cs
- MULTI_QI.cs
- InstanceDescriptor.cs
- RequiredFieldValidator.cs
- XmlSchemaAttribute.cs
- ObjectStateManager.cs
- TypedLocationWrapper.cs
- CatalogUtil.cs
- SqlDataRecord.cs
- XPathMultyIterator.cs
- ListBoxAutomationPeer.cs
- EventPrivateKey.cs
- LayoutTableCell.cs
- EntityTypeEmitter.cs
- WebPartTracker.cs
- FontStretch.cs
- ErrorFormatter.cs
- WindowAutomationPeer.cs
- SelectionManager.cs
- HMAC.cs
- Rect3DValueSerializer.cs
- HostingEnvironment.cs
- StringStorage.cs
- IDictionary.cs
- UnsafeNativeMethodsCLR.cs
- ReferenceConverter.cs
- DataGridPagerStyle.cs
- WindowsFormsSectionHandler.cs
- Types.cs
- WebPartUtil.cs
- ItemCollection.cs
- FrameworkTemplate.cs
- SqlCacheDependency.cs
- Drawing.cs
- TreeNodeSelectionProcessor.cs
- FontWeightConverter.cs
- SectionVisual.cs
- WindowsTooltip.cs
- UnauthorizedAccessException.cs
- FactoryRecord.cs
- HtmlFormWrapper.cs
- Blend.cs
- TreeNodeEventArgs.cs
- Span.cs
- DecoderFallback.cs
- StyleTypedPropertyAttribute.cs
- PropertyInfoSet.cs
- PropertyGridCommands.cs
- DataGridBoolColumn.cs