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
- messageonlyhwndwrapper.cs
- LicenseContext.cs
- DataBindingCollection.cs
- RequestTimeoutManager.cs
- GetPageCompletedEventArgs.cs
- UIElementHelper.cs
- RoleBoolean.cs
- InternalTransaction.cs
- RangeValuePattern.cs
- TypePresenter.xaml.cs
- SlotInfo.cs
- PathStreamGeometryContext.cs
- PerspectiveCamera.cs
- PropertyToken.cs
- initElementDictionary.cs
- RubberbandSelector.cs
- Set.cs
- GridViewRowEventArgs.cs
- DeferrableContentConverter.cs
- Facet.cs
- XmlSchemaSet.cs
- ImageAttributes.cs
- DataServiceExpressionVisitor.cs
- SqlConnectionManager.cs
- IEnumerable.cs
- ListBox.cs
- ItemCheckedEvent.cs
- WmlFormAdapter.cs
- RenderingEventArgs.cs
- OleAutBinder.cs
- FrameworkContextData.cs
- PropertyIDSet.cs
- CryptoApi.cs
- PlatformNotSupportedException.cs
- TargetConverter.cs
- OuterProxyWrapper.cs
- HtmlInputText.cs
- SerializationSectionGroup.cs
- Underline.cs
- DataGridViewRowPostPaintEventArgs.cs
- CoTaskMemSafeHandle.cs
- XmlCharCheckingWriter.cs
- JumpPath.cs
- TransformerInfo.cs
- InternalBufferManager.cs
- ResourceDescriptionAttribute.cs
- DateTimeOffsetStorage.cs
- Pen.cs
- DefaultTextStoreTextComposition.cs
- PersonalizablePropertyEntry.cs
- PrintDialogException.cs
- CounterSampleCalculator.cs
- WebHttpEndpoint.cs
- ImageBrush.cs
- VectorCollection.cs
- HtmlWindow.cs
- CompiledIdentityConstraint.cs
- SchemaTypeEmitter.cs
- PathParser.cs
- PerformanceCounterPermissionAttribute.cs
- Logging.cs
- HttpConfigurationContext.cs
- WebPartAuthorizationEventArgs.cs
- ValueSerializerAttribute.cs
- IPGlobalProperties.cs
- ErrorFormatterPage.cs
- DoubleCollectionConverter.cs
- HttpRequestCacheValidator.cs
- XmlSchemaFacet.cs
- PackWebResponse.cs
- PropertyItem.cs
- Lookup.cs
- Pens.cs
- AddInIpcChannel.cs
- SplineKeyFrames.cs
- SqlInfoMessageEvent.cs
- StringArrayConverter.cs
- MouseActionConverter.cs
- TcpServerChannel.cs
- ViewManager.cs
- FacetEnabledSchemaElement.cs
- HttpCookieCollection.cs
- LogSwitch.cs
- CanExecuteRoutedEventArgs.cs
- AppSettingsReader.cs
- RecognizeCompletedEventArgs.cs
- BookmarkOptionsHelper.cs
- MetadataItem.cs
- SimpleFileLog.cs
- SelectionChangedEventArgs.cs
- TableAdapterManagerHelper.cs
- EntityDataSourceUtil.cs
- EnumType.cs
- DefaultBinder.cs
- XD.cs
- RewritingPass.cs
- IndependentlyAnimatedPropertyMetadata.cs
- BamlResourceSerializer.cs
- LOSFormatter.cs
- QuinticEase.cs