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
- ResourceCategoryAttribute.cs
- SoapElementAttribute.cs
- PkcsMisc.cs
- AssemblyCollection.cs
- CapabilitiesState.cs
- BrowserCapabilitiesCompiler.cs
- ConfigXmlSignificantWhitespace.cs
- ImageKeyConverter.cs
- QilIterator.cs
- MessageQueueInstaller.cs
- UIElementHelper.cs
- BamlCollectionHolder.cs
- UnsafeNativeMethods.cs
- OperandQuery.cs
- FactoryGenerator.cs
- PhysicalFontFamily.cs
- IntSecurity.cs
- TextContainerChangeEventArgs.cs
- XmlException.cs
- ChangeConflicts.cs
- DrawListViewSubItemEventArgs.cs
- SystemIdentity.cs
- Empty.cs
- BitmapPalettes.cs
- entitydatasourceentitysetnameconverter.cs
- DataListItem.cs
- X509ChainElement.cs
- Ray3DHitTestResult.cs
- PrintPreviewGraphics.cs
- LedgerEntry.cs
- InputScopeManager.cs
- ReversePositionQuery.cs
- ISessionStateStore.cs
- Compiler.cs
- XamlWriter.cs
- XmlDataImplementation.cs
- Metafile.cs
- TextFormatterImp.cs
- SerializationTrace.cs
- KeyTime.cs
- XmlAtomicValue.cs
- SourceFilter.cs
- IIS7UserPrincipal.cs
- CatalogZoneDesigner.cs
- InkCanvas.cs
- CollectionConverter.cs
- PackageFilter.cs
- BooleanExpr.cs
- Transform3DGroup.cs
- FormsAuthenticationCredentials.cs
- PageWrapper.cs
- FloaterParaClient.cs
- SimpleRecyclingCache.cs
- Bits.cs
- LinqDataSourceHelper.cs
- XmlSerializationWriter.cs
- ToolboxComponentsCreatedEventArgs.cs
- EnumType.cs
- SQLDoubleStorage.cs
- SQLBinary.cs
- SystemResources.cs
- ChtmlMobileTextWriter.cs
- TaiwanLunisolarCalendar.cs
- ManagementBaseObject.cs
- BitSet.cs
- NameNode.cs
- ModuleConfigurationInfo.cs
- OracleRowUpdatingEventArgs.cs
- XmlEntity.cs
- RunWorkerCompletedEventArgs.cs
- CodePrimitiveExpression.cs
- TypeInitializationException.cs
- FacetValues.cs
- LongValidator.cs
- LinkConverter.cs
- embossbitmapeffect.cs
- OdbcConnectionStringbuilder.cs
- HttpServerUtilityWrapper.cs
- ToolStripItemImageRenderEventArgs.cs
- AttributeCollection.cs
- CompilationUtil.cs
- ValidationRule.cs
- TextLineResult.cs
- TextEditorThreadLocalStore.cs
- Listbox.cs
- DatagridviewDisplayedBandsData.cs
- RSAPKCS1KeyExchangeFormatter.cs
- autovalidator.cs
- TabControlCancelEvent.cs
- SHA1Managed.cs
- PeerChannelFactory.cs
- GridViewPageEventArgs.cs
- AutomationEvent.cs
- SQLStringStorage.cs
- Range.cs
- CurrencyWrapper.cs
- _AutoWebProxyScriptWrapper.cs
- COM2ExtendedUITypeEditor.cs
- SqlServer2KCompatibilityCheck.cs
- OracleRowUpdatingEventArgs.cs