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
- OleDbException.cs
- WebHostedComPlusServiceHost.cs
- StrokeIntersection.cs
- ImageAttributes.cs
- DelayedRegex.cs
- SerializerProvider.cs
- MemberDescriptor.cs
- StreamGeometry.cs
- EventSource.cs
- LinqDataSourceHelper.cs
- GiveFeedbackEvent.cs
- WaitHandle.cs
- NullableDecimalSumAggregationOperator.cs
- ExceptionUtil.cs
- TraceData.cs
- ActiveXSite.cs
- XmlSerializationReader.cs
- OdbcConnectionString.cs
- TemplateXamlParser.cs
- XmlIlTypeHelper.cs
- SoapCodeExporter.cs
- SafeFileHandle.cs
- PageThemeBuildProvider.cs
- StringExpressionSet.cs
- SoapAttributeOverrides.cs
- BamlVersionHeader.cs
- _SslStream.cs
- ImageSourceConverter.cs
- XPathCompileException.cs
- SaveFileDialog.cs
- QilDataSource.cs
- ChineseLunisolarCalendar.cs
- RemotingHelper.cs
- StorageEntitySetMapping.cs
- ConfigXmlAttribute.cs
- DnsEndpointIdentity.cs
- ToolStripDesignerUtils.cs
- DataGridRelationshipRow.cs
- MarshalByValueComponent.cs
- BindableAttribute.cs
- Int32Animation.cs
- ImportCatalogPart.cs
- DefaultShape.cs
- RtType.cs
- DrawingGroup.cs
- ComplexTypeEmitter.cs
- RootNamespaceAttribute.cs
- PropertyStore.cs
- mda.cs
- WeakReferenceList.cs
- EditorPartCollection.cs
- CodeDomSerializer.cs
- TaskSchedulerException.cs
- ExchangeUtilities.cs
- SymbolDocumentGenerator.cs
- TimerElapsedEvenArgs.cs
- Bookmark.cs
- EntityDataSourceConfigureObjectContext.cs
- SqlClientFactory.cs
- CorePropertiesFilter.cs
- HtmlContainerControl.cs
- InProcStateClientManager.cs
- WebPartTracker.cs
- PagedDataSource.cs
- RequestDescription.cs
- XmlObjectSerializerContext.cs
- HttpCachePolicy.cs
- OutputCacheSection.cs
- DescendentsWalkerBase.cs
- CustomSignedXml.cs
- EncoderBestFitFallback.cs
- sqlnorm.cs
- DefaultPropertyAttribute.cs
- FontInfo.cs
- HttpModuleCollection.cs
- KeyBinding.cs
- CustomErrorCollection.cs
- TypeInitializationException.cs
- XomlCompiler.cs
- ApplicationGesture.cs
- AnnotationResourceCollection.cs
- DocumentDesigner.cs
- UntypedNullExpression.cs
- Symbol.cs
- ControlUtil.cs
- XamlGridLengthSerializer.cs
- ScriptControlDescriptor.cs
- TreeNodeConverter.cs
- XamlVector3DCollectionSerializer.cs
- CodeTypeMemberCollection.cs
- SimpleHandlerFactory.cs
- Pen.cs
- StrongNameIdentityPermission.cs
- InstanceKeyCollisionException.cs
- AsymmetricKeyExchangeFormatter.cs
- DependencyObjectProvider.cs
- Vector3DCollectionConverter.cs
- DockPanel.cs
- PropertyEmitterBase.cs
- FixedPageStructure.cs