Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LineVisual.cs
- CornerRadius.cs
- ComPlusServiceLoader.cs
- RawStylusInputCustomDataList.cs
- BamlResourceDeserializer.cs
- HistoryEventArgs.cs
- WSHttpSecurity.cs
- XamlInt32CollectionSerializer.cs
- RegistrationServices.cs
- ISO2022Encoding.cs
- InheritedPropertyChangedEventArgs.cs
- FileDialogCustomPlacesCollection.cs
- WebServiceHandlerFactory.cs
- ServiceDescriptionData.cs
- DriveInfo.cs
- SystemIcmpV6Statistics.cs
- URLMembershipCondition.cs
- TemplateControlCodeDomTreeGenerator.cs
- PointAnimationBase.cs
- Parameter.cs
- ListItemCollection.cs
- RsaSecurityTokenAuthenticator.cs
- WebPartConnectionsConfigureVerb.cs
- IndexerNameAttribute.cs
- ProgressBarAutomationPeer.cs
- PrivilegeNotHeldException.cs
- ForeignKeyConstraint.cs
- ResXFileRef.cs
- GetPageCompletedEventArgs.cs
- _PooledStream.cs
- BinaryReader.cs
- HttpDebugHandler.cs
- GetPageNumberCompletedEventArgs.cs
- WebContext.cs
- OrderByLifter.cs
- TextClipboardData.cs
- TabItem.cs
- DoubleAnimationBase.cs
- DecoratedNameAttribute.cs
- SoapSchemaImporter.cs
- ImportContext.cs
- ToolStripCodeDomSerializer.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- DataGridViewRowStateChangedEventArgs.cs
- LiteralDesigner.cs
- IIS7WorkerRequest.cs
- RoutedEvent.cs
- ModelTreeManager.cs
- DataGridSortingEventArgs.cs
- TextTreeUndoUnit.cs
- TableAdapterManagerMethodGenerator.cs
- RsaEndpointIdentity.cs
- SizeF.cs
- FixedDocumentSequencePaginator.cs
- DataServiceSaveChangesEventArgs.cs
- TraceHelpers.cs
- ConfigErrorGlyph.cs
- MouseWheelEventArgs.cs
- OutputScopeManager.cs
- COM2FontConverter.cs
- Int32.cs
- PointCollection.cs
- ScaleTransform.cs
- ListBindingHelper.cs
- XpsViewerException.cs
- MediaTimeline.cs
- EditorPartCollection.cs
- ArgumentException.cs
- Comparer.cs
- RegisteredArrayDeclaration.cs
- TcpProcessProtocolHandler.cs
- EdgeModeValidation.cs
- validationstate.cs
- HybridDictionary.cs
- ThumbAutomationPeer.cs
- CodeNamespaceImport.cs
- MemoryResponseElement.cs
- Stylesheet.cs
- HostProtectionException.cs
- ValuePattern.cs
- XmlUtilWriter.cs
- MachineKeyConverter.cs
- AspCompat.cs
- FullTextState.cs
- ConnectionOrientedTransportChannelListener.cs
- PngBitmapDecoder.cs
- GridItem.cs
- SqlDataSourceQuery.cs
- EntityDataSourceView.cs
- PeerTransportBindingElement.cs
- XmlNamespaceDeclarationsAttribute.cs
- ChooseAction.cs
- Canvas.cs
- WebPartCloseVerb.cs
- FontCollection.cs
- EncodingNLS.cs
- ReaderWriterLock.cs
- AmbientLight.cs
- TabControl.cs
- BufferedGraphicsManager.cs