Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ObjectListCommandEventArgs.cs
- FormatConvertedBitmap.cs
- CodeDOMUtility.cs
- RecommendedAsConfigurableAttribute.cs
- WebScriptEnablingBehavior.cs
- TiffBitmapDecoder.cs
- SiteMembershipCondition.cs
- FactoryRecord.cs
- SubqueryTrackingVisitor.cs
- UrlMappingsModule.cs
- RelatedCurrencyManager.cs
- DrawingImage.cs
- ClientOptions.cs
- Int64Converter.cs
- LambdaCompiler.Lambda.cs
- XmlSchemaDatatype.cs
- StrongNameUtility.cs
- SystemIcmpV4Statistics.cs
- CustomValidator.cs
- ProjectionPathSegment.cs
- ImageIndexConverter.cs
- WebBrowsableAttribute.cs
- RowSpanVector.cs
- ComponentDispatcher.cs
- BaseTemplateParser.cs
- TableProvider.cs
- DataViewManagerListItemTypeDescriptor.cs
- NamedPipeProcessProtocolHandler.cs
- ValueCollectionParameterReader.cs
- UnicodeEncoding.cs
- CommandDevice.cs
- CatalogZoneAutoFormat.cs
- List.cs
- DataGridViewRowEventArgs.cs
- HostedHttpContext.cs
- TogglePatternIdentifiers.cs
- ResourceIDHelper.cs
- NotSupportedException.cs
- SHA256Cng.cs
- AutoResetEvent.cs
- UnmanagedMemoryStream.cs
- DataGridHeaderBorder.cs
- FaultCode.cs
- SqlFacetAttribute.cs
- PingOptions.cs
- XmlKeywords.cs
- UnderstoodHeaders.cs
- ClockController.cs
- KeyBinding.cs
- BatchParser.cs
- WeakReferenceEnumerator.cs
- UnsafeNativeMethods.cs
- GiveFeedbackEvent.cs
- PtsHelper.cs
- FormatterServices.cs
- RTLAwareMessageBox.cs
- activationcontext.cs
- securitymgrsite.cs
- SpellerInterop.cs
- ResourceReferenceExpressionConverter.cs
- FilterException.cs
- TrustVersion.cs
- ValueOfAction.cs
- Queue.cs
- SourceInterpreter.cs
- VirtualPathUtility.cs
- GridEntry.cs
- NativeWindow.cs
- ToolbarAUtomationPeer.cs
- InputLangChangeRequestEvent.cs
- InputLanguageEventArgs.cs
- PathFigureCollection.cs
- SmtpMail.cs
- OleDbRowUpdatedEvent.cs
- SynchronizedInputAdaptor.cs
- IDReferencePropertyAttribute.cs
- DateTimePicker.cs
- StringResourceManager.cs
- ApplicationId.cs
- WebConfigurationManager.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- DataGridTablesFactory.cs
- SecurityCriticalDataForSet.cs
- OletxCommittableTransaction.cs
- GetPageNumberCompletedEventArgs.cs
- FrameworkElementAutomationPeer.cs
- RSAPKCS1SignatureDeformatter.cs
- UnmanagedMemoryStream.cs
- SizeAnimation.cs
- NamedPermissionSet.cs
- DataObjectCopyingEventArgs.cs
- Positioning.cs
- SoapReflectionImporter.cs
- OleDbDataReader.cs
- WebBaseEventKeyComparer.cs
- GeometryConverter.cs
- RegistrySecurity.cs
- UpdatePanelTriggerCollection.cs
- SimpleBitVector32.cs
- ExcCanonicalXml.cs