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
- PropertySourceInfo.cs
- SettingsPropertyCollection.cs
- Unit.cs
- FamilyTypeface.cs
- DbCommandTree.cs
- Util.cs
- Image.cs
- CacheManager.cs
- UnrecognizedPolicyAssertionElement.cs
- StorageMappingItemCollection.cs
- Nodes.cs
- BamlStream.cs
- GenericXmlSecurityToken.cs
- WebPartTransformerCollection.cs
- MultilineStringConverter.cs
- XmlDomTextWriter.cs
- XmlSchemaSimpleContentExtension.cs
- DataGridCellInfo.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- SelectionItemProviderWrapper.cs
- EncryptedPackage.cs
- LoginUtil.cs
- IItemContainerGenerator.cs
- CultureTableRecord.cs
- TabPage.cs
- SafeNativeMethodsMilCoreApi.cs
- MetabaseSettings.cs
- EntityTransaction.cs
- StylusPointPropertyInfoDefaults.cs
- OrthographicCamera.cs
- Vector3DAnimationUsingKeyFrames.cs
- TableLayoutSettingsTypeConverter.cs
- DBParameter.cs
- BasePropertyDescriptor.cs
- ExceptionDetail.cs
- ProjectionCamera.cs
- CustomGrammar.cs
- AssemblyFilter.cs
- CheckBoxField.cs
- UMPAttributes.cs
- ParagraphResult.cs
- SmtpTransport.cs
- UseManagedPresentationBindingElementImporter.cs
- ProjectionCamera.cs
- TreeNodeBinding.cs
- CharConverter.cs
- DelegatedStream.cs
- PageEventArgs.cs
- ContextMenuService.cs
- Decoder.cs
- NumericUpDownAcceleration.cs
- TabOrder.cs
- ContextMarshalException.cs
- ControlAdapter.cs
- ReadOnlyDataSource.cs
- OutOfMemoryException.cs
- Misc.cs
- HtmlTableRow.cs
- SqlNotificationEventArgs.cs
- RadioButton.cs
- coordinatorfactory.cs
- Int16Animation.cs
- ControlTemplate.cs
- WebPartDisplayModeCollection.cs
- StrokeSerializer.cs
- SrgsItemList.cs
- OdbcHandle.cs
- PathFigure.cs
- ThreadExceptionDialog.cs
- Control.cs
- DrawItemEvent.cs
- DnsPermission.cs
- FontSizeConverter.cs
- HandlerBase.cs
- messageonlyhwndwrapper.cs
- StylusPointProperty.cs
- XmlEncodedRawTextWriter.cs
- KnownTypeAttribute.cs
- ContainerSelectorGlyph.cs
- BamlReader.cs
- CodeTypeConstructor.cs
- PropertyRecord.cs
- Int16Animation.cs
- _ListenerRequestStream.cs
- ControlParameter.cs
- CollectionBase.cs
- WebBrowser.cs
- Journaling.cs
- PathSegmentCollection.cs
- DataTablePropertyDescriptor.cs
- XslException.cs
- EdmProviderManifest.cs
- MemberDescriptor.cs
- XmlLanguage.cs
- BoundsDrawingContextWalker.cs
- BuildDependencySet.cs
- ConnectionConsumerAttribute.cs
- RenderDataDrawingContext.cs
- RawStylusActions.cs
- PrimaryKeyTypeConverter.cs