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
- ToolboxItemImageConverter.cs
- RootBrowserWindowProxy.cs
- MediaSystem.cs
- OperatorExpressions.cs
- CustomDictionarySources.cs
- TypedAsyncResult.cs
- filewebrequest.cs
- OracleConnectionString.cs
- MailWebEventProvider.cs
- QueryOutputWriter.cs
- StructuralCache.cs
- Missing.cs
- AppModelKnownContentFactory.cs
- GcHandle.cs
- XmlSecureResolver.cs
- SafeHandles.cs
- HotSpot.cs
- BamlLocalizabilityResolver.cs
- parserscommon.cs
- CategoriesDocument.cs
- MeasureData.cs
- ColumnHeader.cs
- DtcInterfaces.cs
- COM2ExtendedUITypeEditor.cs
- StylusPointDescription.cs
- PeerNameResolver.cs
- mactripleDES.cs
- ColorBlend.cs
- SubMenuStyleCollection.cs
- DbgCompiler.cs
- WSSecurityOneDotZeroReceiveSecurityHeader.cs
- WebChannelFactory.cs
- Drawing.cs
- ProviderException.cs
- Executor.cs
- NativeMethods.cs
- PageThemeCodeDomTreeGenerator.cs
- GridViewRowCollection.cs
- WebDescriptionAttribute.cs
- PropertyItem.cs
- VirtualDirectoryMapping.cs
- TableLayoutPanelCellPosition.cs
- ChangesetResponse.cs
- SqlUnionizer.cs
- ExpandableObjectConverter.cs
- MimeMapping.cs
- Config.cs
- PinnedBufferMemoryStream.cs
- AddInEnvironment.cs
- EntityDataSourceState.cs
- FormViewAutoFormat.cs
- JsonDataContract.cs
- sqlnorm.cs
- DataGridViewTopLeftHeaderCell.cs
- WSIdentityFaultException.cs
- DefaultAsyncDataDispatcher.cs
- EnumMember.cs
- Rotation3D.cs
- HtmlInputControl.cs
- ToolStripDropDownButton.cs
- Int32KeyFrameCollection.cs
- OracleConnection.cs
- WebException.cs
- Mapping.cs
- OdbcStatementHandle.cs
- TextContainerHelper.cs
- TypeSystem.cs
- StylusButtonCollection.cs
- MissingFieldException.cs
- Registry.cs
- ECDiffieHellmanPublicKey.cs
- XmlParser.cs
- WindowsFormsSynchronizationContext.cs
- PropertyCollection.cs
- MsmqChannelListenerBase.cs
- ApplicationGesture.cs
- PrePostDescendentsWalker.cs
- NavigationWindow.cs
- ScaleTransform3D.cs
- ListView.cs
- ResourcePermissionBase.cs
- PlanCompilerUtil.cs
- wmiprovider.cs
- UnsettableComboBox.cs
- ContextConfiguration.cs
- WebBrowserHelper.cs
- SqlDataSourceConfigureSortForm.cs
- CompositeActivityDesigner.cs
- ColorConverter.cs
- WizardSideBarListControlItemEventArgs.cs
- CqlParser.cs
- TargetParameterCountException.cs
- ListItemParagraph.cs
- ProviderIncompatibleException.cs
- DrawTreeNodeEventArgs.cs
- Validator.cs
- Point.cs
- ParameterBuilder.cs
- KeyInfo.cs
- DesignerMetadata.cs