Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / WinForms / Managed / System / WinForms / DockingAttribute.cs / 1 / 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
- MultipleViewPattern.cs
- _ChunkParse.cs
- XamlGridLengthSerializer.cs
- Pair.cs
- ByteAnimationBase.cs
- VarRefManager.cs
- ReliableChannelListener.cs
- SqlCacheDependencyDatabaseCollection.cs
- CompModSwitches.cs
- QuaternionConverter.cs
- SerializationSectionGroup.cs
- GPRECT.cs
- Wizard.cs
- SQLBytes.cs
- MessageSmuggler.cs
- StringAnimationBase.cs
- _HeaderInfoTable.cs
- AddInControllerImpl.cs
- Control.cs
- ObjectComplexPropertyMapping.cs
- ScrollItemPattern.cs
- MultipleViewPattern.cs
- NotImplementedException.cs
- SettingsPropertyNotFoundException.cs
- SafeRegistryHandle.cs
- CodeAssignStatement.cs
- shaper.cs
- DataSetMappper.cs
- autovalidator.cs
- _SingleItemRequestCache.cs
- CodeRemoveEventStatement.cs
- DoubleKeyFrameCollection.cs
- FixUpCollection.cs
- WindowsFormsHostAutomationPeer.cs
- TextServicesManager.cs
- TrustLevel.cs
- SecUtil.cs
- lengthconverter.cs
- ClientEventManager.cs
- PerformanceCounterPermissionEntryCollection.cs
- DataGridTablesFactory.cs
- CompiledRegexRunner.cs
- CachedResourceDictionaryExtension.cs
- WebPartDisplayModeCollection.cs
- ToolStripRenderer.cs
- DataGridViewCellPaintingEventArgs.cs
- PageThemeBuildProvider.cs
- TypeElement.cs
- Ref.cs
- EncodingDataItem.cs
- HtmlTableRowCollection.cs
- DomainUpDown.cs
- ResourceDescriptionAttribute.cs
- IIS7UserPrincipal.cs
- RegexCode.cs
- Int32AnimationUsingKeyFrames.cs
- QueryContinueDragEvent.cs
- XpsFontSubsetter.cs
- X509Certificate2Collection.cs
- httpserverutility.cs
- ReflectionUtil.cs
- FastEncoder.cs
- PeerNearMe.cs
- QuaternionRotation3D.cs
- DesignSurfaceServiceContainer.cs
- PropertyToken.cs
- GridViewItemAutomationPeer.cs
- TimestampInformation.cs
- ButtonAutomationPeer.cs
- AnnotationComponentManager.cs
- DragDeltaEventArgs.cs
- SelectionService.cs
- TemplatePropertyEntry.cs
- XsltLoader.cs
- UriScheme.cs
- RegexWriter.cs
- SmtpCommands.cs
- GridView.cs
- ProxyWebPartManager.cs
- RectangleHotSpot.cs
- ConfigurationElementCollection.cs
- Membership.cs
- TypeCodeDomSerializer.cs
- WebPartConnectionsCloseVerb.cs
- EventDrivenDesigner.cs
- FontUnitConverter.cs
- DataTableReaderListener.cs
- PostBackOptions.cs
- NullRuntimeConfig.cs
- DataGridViewColumnConverter.cs
- XmlDocumentType.cs
- RichTextBox.cs
- OracleBFile.cs
- DataGridCheckBoxColumn.cs
- LiteralDesigner.cs
- HeaderedItemsControl.cs
- VisualCollection.cs
- DataGridViewColumnStateChangedEventArgs.cs
- BlobPersonalizationState.cs
- RegexCompilationInfo.cs