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
- AsyncCallback.cs
- AttributeQuery.cs
- UnsafeNativeMethods.cs
- InternalRelationshipCollection.cs
- UnknownBitmapEncoder.cs
- IncrementalCompileAnalyzer.cs
- XmlSchemaParticle.cs
- LoadItemsEventArgs.cs
- PreProcessInputEventArgs.cs
- TextEditorThreadLocalStore.cs
- StateDesigner.Helpers.cs
- HierarchicalDataSourceDesigner.cs
- CompiledRegexRunner.cs
- ProcessHostServerConfig.cs
- CursorConverter.cs
- HtmlTextArea.cs
- CustomError.cs
- LayoutTableCell.cs
- XXXOnTypeBuilderInstantiation.cs
- ViewCellSlot.cs
- Run.cs
- FixedSOMPage.cs
- InternalDispatchObject.cs
- OverflowException.cs
- KeyProperty.cs
- InlineCollection.cs
- remotingproxy.cs
- ClrProviderManifest.cs
- XmlSerializationWriter.cs
- HexParser.cs
- SynchronizationContext.cs
- HebrewCalendar.cs
- CacheRequest.cs
- PermissionRequestEvidence.cs
- InterleavedZipPartStream.cs
- CssStyleCollection.cs
- EncoderNLS.cs
- DateTimeSerializationSection.cs
- StrongName.cs
- ReferencedType.cs
- ImportedNamespaceContextItem.cs
- X509Certificate.cs
- Rule.cs
- _DynamicWinsockMethods.cs
- URLAttribute.cs
- ServiceHttpModule.cs
- PatternMatcher.cs
- WebHostUnsafeNativeMethods.cs
- Vector3D.cs
- TextElementCollectionHelper.cs
- StrokeCollection2.cs
- InvalidStoreProtectionKeyException.cs
- ClientTargetSection.cs
- ContextStaticAttribute.cs
- DataServiceEntityAttribute.cs
- DashStyle.cs
- InkCanvas.cs
- SafeFileMappingHandle.cs
- ListManagerBindingsCollection.cs
- DefaultSerializationProviderAttribute.cs
- SwitchElementsCollection.cs
- SamlDoNotCacheCondition.cs
- WindowsListViewItem.cs
- TaskForm.cs
- ToolStripItemEventArgs.cs
- TimelineGroup.cs
- MsiStyleLogWriter.cs
- _SSPISessionCache.cs
- BrowserDefinition.cs
- Ref.cs
- ProjectedSlot.cs
- TrustManager.cs
- storepermission.cs
- SrgsText.cs
- Attribute.cs
- HtmlWindowCollection.cs
- Run.cs
- RotationValidation.cs
- OutputCacheModule.cs
- ControlAdapter.cs
- PropertyMappingExceptionEventArgs.cs
- WindowsSidIdentity.cs
- DataGridViewDataErrorEventArgs.cs
- Maps.cs
- TypeToArgumentTypeConverter.cs
- InternalsVisibleToAttribute.cs
- RC2.cs
- HandlerFactoryWrapper.cs
- WebPartConnectionsCancelVerb.cs
- SAPIEngineTypes.cs
- NumericUpDownAccelerationCollection.cs
- FontFamilyValueSerializer.cs
- CachedRequestParams.cs
- XmlSchemaSimpleTypeUnion.cs
- InlineObject.cs
- HttpCookie.cs
- NativeMethods.cs
- EntityTypeEmitter.cs
- ApplicationBuildProvider.cs
- OleDbDataAdapter.cs