Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- TargetParameterCountException.cs
- EventWaitHandle.cs
- Decoder.cs
- AssemblyBuilderData.cs
- DesignerRegion.cs
- MessageFilter.cs
- SystemEvents.cs
- hebrewshape.cs
- Preprocessor.cs
- PropertyMapper.cs
- DBCommand.cs
- DesignerDataStoredProcedure.cs
- XmlSchemaAttribute.cs
- XmlWhitespace.cs
- ProxyHwnd.cs
- EventTask.cs
- MediaTimeline.cs
- AutomationPropertyInfo.cs
- AssemblyBuilder.cs
- MulticastNotSupportedException.cs
- SelectionListComponentEditor.cs
- CustomCredentialPolicy.cs
- DataServiceQueryOfT.cs
- CapabilitiesAssignment.cs
- MessageBodyDescription.cs
- FileSystemEventArgs.cs
- RequestQueue.cs
- Accessible.cs
- DictionarySectionHandler.cs
- HttpHandlerActionCollection.cs
- OrderPreservingPipeliningSpoolingTask.cs
- Application.cs
- PersonalizationProvider.cs
- TcpClientCredentialType.cs
- Stream.cs
- MembershipSection.cs
- ClientRuntimeConfig.cs
- ReadOnlyObservableCollection.cs
- FillRuleValidation.cs
- BrowserCapabilitiesCodeGenerator.cs
- _Events.cs
- DataContractJsonSerializer.cs
- ElementNotAvailableException.cs
- LongSumAggregationOperator.cs
- SelectionItemPattern.cs
- PointAnimationUsingKeyFrames.cs
- MessageHeaderT.cs
- CatalogZone.cs
- TextUtf8RawTextWriter.cs
- FormViewPageEventArgs.cs
- HostProtectionPermission.cs
- SourceChangedEventArgs.cs
- TraceLog.cs
- PrimitiveType.cs
- SortKey.cs
- Utils.cs
- DataGridToolTip.cs
- ListBase.cs
- AssemblyContextControlItem.cs
- FamilyMap.cs
- WebPartRestoreVerb.cs
- ComContractElement.cs
- HwndSourceKeyboardInputSite.cs
- MatrixCamera.cs
- BitStream.cs
- VisualTreeHelper.cs
- LabelLiteral.cs
- Deserializer.cs
- DataFieldConverter.cs
- WebPartDeleteVerb.cs
- DispatcherFrame.cs
- ButtonFieldBase.cs
- ContextMarshalException.cs
- CapabilitiesPattern.cs
- DefaultValueTypeConverter.cs
- ObjectListGeneralPage.cs
- Pen.cs
- RoleGroupCollection.cs
- WCFModelStrings.Designer.cs
- DocumentGrid.cs
- ListDictionary.cs
- MessageContractAttribute.cs
- NameValuePermission.cs
- TemplateNameScope.cs
- DBProviderConfigurationHandler.cs
- DataSourceBooleanViewSchemaConverter.cs
- DataGridRelationshipRow.cs
- BinaryMessageFormatter.cs
- _SslState.cs
- ContentType.cs
- SQLByteStorage.cs
- ColorTransformHelper.cs
- COM2PropertyPageUITypeConverter.cs
- AssemblyResolver.cs
- ApplicationFileCodeDomTreeGenerator.cs
- ContentDisposition.cs
- PenThreadWorker.cs
- LambdaCompiler.ControlFlow.cs
- MetadataUtilsSmi.cs
- TraceListener.cs