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
- SecurityPermission.cs
- LocalizabilityAttribute.cs
- SspiHelper.cs
- HttpCapabilitiesEvaluator.cs
- nulltextcontainer.cs
- PrimitiveSchema.cs
- PropertyEntry.cs
- GeneratedContractType.cs
- CacheForPrimitiveTypes.cs
- NativeMethods.cs
- ProviderConnectionPointCollection.cs
- ConstraintManager.cs
- ErrorHandler.cs
- BamlLocalizationDictionary.cs
- Utils.cs
- ChangeDirector.cs
- XpsS0ValidatingLoader.cs
- ObfuscateAssemblyAttribute.cs
- GenericTypeParameterBuilder.cs
- GridViewRow.cs
- DataGridTablesFactory.cs
- SqlWriter.cs
- NullEntityWrapper.cs
- SBCSCodePageEncoding.cs
- OleDbStruct.cs
- WebConfigurationFileMap.cs
- ResourceKey.cs
- ToolboxItem.cs
- Transform3DCollection.cs
- DataRowCollection.cs
- RecordBuilder.cs
- recordstatefactory.cs
- WebErrorHandler.cs
- BulletChrome.cs
- ImmutableObjectAttribute.cs
- ISessionStateStore.cs
- DoubleLinkList.cs
- SqlInternalConnectionSmi.cs
- BinaryParser.cs
- GeneralTransform3D.cs
- RuntimeWrappedException.cs
- ZipIOCentralDirectoryFileHeader.cs
- MissingFieldException.cs
- DeploymentSectionCache.cs
- SoapServerProtocol.cs
- OrderedHashRepartitionEnumerator.cs
- StaticDataManager.cs
- BasicKeyConstraint.cs
- Label.cs
- BaseAsyncResult.cs
- RtfFormatStack.cs
- EventManager.cs
- Rotation3DKeyFrameCollection.cs
- DecoratedNameAttribute.cs
- SQLSingleStorage.cs
- COSERVERINFO.cs
- PieceDirectory.cs
- MaskedTextBox.cs
- GroupStyle.cs
- KeyBinding.cs
- OracleMonthSpan.cs
- InvokeMethodActivity.cs
- odbcmetadatacollectionnames.cs
- XpsS0ValidatingLoader.cs
- DataGridViewRowsAddedEventArgs.cs
- FrameworkContentElement.cs
- ELinqQueryState.cs
- StylusLogic.cs
- SystemIPv6InterfaceProperties.cs
- DBSchemaTable.cs
- TextChangedEventArgs.cs
- OperationAbortedException.cs
- ErrorWebPart.cs
- EventWaitHandleSecurity.cs
- UidManager.cs
- SymbolPair.cs
- FileFormatException.cs
- RefType.cs
- Calendar.cs
- Encoder.cs
- HttpClientCertificate.cs
- DesignerForm.cs
- IImplicitResourceProvider.cs
- OpenTypeLayoutCache.cs
- RSACryptoServiceProvider.cs
- SoapHeaders.cs
- ProgressBar.cs
- LifetimeServices.cs
- Publisher.cs
- IsolationInterop.cs
- ArrangedElementCollection.cs
- DBPropSet.cs
- Span.cs
- WindowsPen.cs
- TypeDescriptionProviderAttribute.cs
- AuthenticationService.cs
- DetailsViewInsertedEventArgs.cs
- RSAProtectedConfigurationProvider.cs
- AvTraceDetails.cs
- TextServicesDisplayAttributePropertyRanges.cs